Is your code inside an Objective-C method? What are you expecting self to be?

--Andy


On May 5, 2008, at 5:50 PM, J. Todd Slack wrote:

Hi All,

I have the following:

statusItem = [[[NSStatusBar systemStatusBar]
    statusItemWithLength:NSVariableStatusItemLength]
    retain];
 [statusItem setHighlightMode:YES];
 [statusItem setTitle:[NSString stringWithFormat:@"%C",0x260F]];
 [statusItem setEnabled:YES];
 [statusItem setToolTip:@"Ring-Maker"];

 [statusItem setTarget:self];


The compiler complains about self; saying: iTunesPlugIn.m:606: error: 'self' undeclared (first use in this function)\

But I dont understand why it is complaining?

Can I get a refresher from anyone?

-Jason

_______________________________________________

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/aglee%40mac.com

This email sent to [EMAIL PROTECTED]

_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to