Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Assetion failure related to menus and notifications.



I am relatively new to cocoa, been hobby programming for a while,
while researching distributed notifications for one of my new programs
it seems the newest version of iTunes sends out song information as a
distributed notification, this is way better then the old method of
using applescript for whatever we decided to use it for, the downside
is you still need to use applescript to control it.

I have tried to make a small NSStatusItem that would control itunes
and display history in an easy to use way, however i am having a
problem, whenever i close itunes i get this error:

2004-12-05 19:31:45.097 iTunesMenulet[4682] *** Assertion failure in
-[NSMenuItem initWithTitle:action:keyEquivalent:],
Menus.subproj/NSMenuItem.m:115
2004-12-05 19:31:45.097 iTunesMenulet[4682] Exception raised during
posting of notification.  Ignored.  exception: Invalid parameter not
satisfying: aString != nil

The source is in a link below if anyone needs to get a better picture
of what is happening, it is too big to post the entire source here in
this email. THe problem happens in -recentPlaying ~line 144.

http://catsdorule.torpedobird.com/download/iTunesMenulet.zip

Thanks a lot,
Dan Saul
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.