~ubuntu-branches/ubuntu/intrepid/miro/intrepid

« back to all changes in this revision

Viewing changes to platform/osx/frontend/Application.py

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2008-02-09 13:37:10 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080209133710-9rs90q6gckvp1b6i
Tags: 1.1.2-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# You should have received a copy of the GNU General Public License
15
15
# along with this program; if not, write to the Free Software
16
16
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 
17
#
 
18
# In addition, as a special exception, the copyright holders give
 
19
# permission to link the code of portions of this program with the OpenSSL
 
20
# library.
 
21
#
 
22
# You must obey the GNU General Public License in all respects for all of
 
23
# the code used other than OpenSSL. If you modify file(s) with this
 
24
# exception, you may extend this exception to your version of the file(s),
 
25
# but you are not obligated to do so. If you do not wish to do so, delete
 
26
# this exception statement from your version. If you delete this exception
 
27
# statement from all source files in the program, then also delete it here.
17
28
 
18
29
import os
19
30
import re
22
33
import logging
23
34
import urlparse
24
35
 
25
 
from objc import YES, NO, nil, signature
 
36
from objc import YES, NO, nil, signature, IBOutlet
26
37
from AppKit import *
27
38
from Foundation import *
28
 
from PyObjCTools import NibClassBuilder, AppHelper
 
39
from PyObjCTools import AppHelper
29
40
from ExceptionHandling import NSExceptionHandler, NSLogAndHandleEveryExceptionMask
30
41
 
31
42
from gestalt import gestalt
47
58
import GrowlNotifier
48
59
import SparkleUpdater
49
60
 
50
 
NibClassBuilder.extractClasses(u"MainMenu")
51
 
 
52
61
###############################################################################
53
62
 
54
63
class Application:
104
113
 
105
114
###############################################################################
106
115
 
107
 
class AppController (NibClassBuilder.AutoBaseClass):
 
116
class AppController (NSObject):
 
117
 
 
118
    playPauseMenuItem = IBOutlet('playPauseMenuItem')
108
119
 
109
120
    def applicationWillFinishLaunching_(self, notification):
110
121
        NSExceptionHandler.defaultExceptionHandler().setExceptionHandlingMask_(NSLogAndHandleEveryExceptionMask)