On Fri, 6 Mar 2009 11:18:56 -0500, "McLaughlin, Michael P."
<mp...@mitre.org> said:
>      [nc addObserver:self selector:@selector(getGPS) name:@"fetchGPS"
>object:nil];

Well, that's never going to work. There are two possibilities here:

(1) Maybe you've defined

- (void) getGPS: (NSNotification*) n

But in that case it will never be called because its name is getGPS:, and
you said getGPS which is not the same thing.

(2) Maybe you've defined

- (void) getGPS

But in that case it will never be called because that is not the format of
an eligible notification callback.

As the docs say, "The method the selector specifies must have one and only
one argument."

m.

-- 
matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to