vincent-le-normand / Parrot-Status

Status Item for the Parrot Zik
Other
63 stars 11 forks source link

Running from latest source on 10.9 causes exception #8

Closed SerialVelocity closed 9 years ago

SerialVelocity commented 10 years ago
2014-11-05 14:50:24.532 Parrot Status[10917:303] -[NSStatusItem button]: unrecognized selector sent to instance 0x618000099280
2014-11-05 14:50:24.532 Parrot Status[10917:303] -[NSStatusItem button]: unrecognized selector sent to instance 0x618000099280
2014-11-05 14:50:24.532 Parrot Status[10917:303] (
    0   CoreFoundation                      0x00007fff8c34225c __exceptionPreprocess + 172
    1   libobjc.A.dylib                     0x00007fff86548e75 objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff8c34512d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
    3   CoreFoundation                      0x00007fff8c2a0272 ___forwarding___ + 1010
    4   CoreFoundation                      0x00007fff8c29fdf8 _CF_forwarding_prep_0 + 120
    5   Parrot Status                       0x00000001000025f0 -[AppDelegate updateStatusItem] + 688
    6   Parrot Status                       0x000000010000214d -[AppDelegate setupStatusItem] + 173
    7   Parrot Status                       0x000000010000204a -[AppDelegate applicationDidFinishLaunching:] + 58
    8   CoreFoundation                      0x00007fff8c310e0c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
    9   CoreFoundation                      0x00007fff8c20482d _CFXNotificationPost + 2893
    10  Foundation                          0x00007fff8f2c1e4a -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
    11  AppKit                              0x00007fff84089b69 -[NSApplication _postDidFinishNotification] + 289
    12  AppKit                              0x00007fff84076389 -[NSApplication finishLaunching] + 2147
    13  AppKit                              0x00007fff840757f3 -[NSApplication run] + 128
    14  AppKit                              0x00007fff84060783 NSApplicationMain + 940
    15  Parrot Status                       0x0000000100001922 main + 34
    16  libdyld.dylib                       0x00007fff876805fd start + 1
    17  ???                                 0x0000000000000003 0x0 + 3
)
SerialVelocity commented 10 years ago

So, this exception disappears when I select "OS X 10.9" for the Base SDK in Build Settings.

SerialVelocity commented 10 years ago

Now errors though: screen shot 2014-11-05 at 14 54 33

vincent-le-normand commented 10 years ago

Es, this is because we are using 10.10 only APIs. The new API is specially useful to handle “show only icon” / text + both option.

Also, I think the API we used previously is deprecated.

I’ll take look at that sometimes this week.

Le 5 nov. 2014 à 15:56, Ben Grabham notifications@github.com a écrit :

Now errors though:

— Reply to this email directly or view it on GitHub.

SerialVelocity commented 10 years ago

I've fixed all these locally apart from:

statusItem.button.imagePosition = NSImageRight;
vincent-le-normand commented 9 years ago

It should be finally fixed...