Your approach is fine, just pass in a valid object for the target since self doesn't exist at that point. If you don't have an object you'll need to make an objc class and instantiate it to handle the events from the status item.

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

OK, I think it is because I dont understand mixing C and Objective-C.

I have a .c file that I put a .m extension on. I want to mix some Objective-C Code when the plug-in is initialized.

Does anyone have an example of how to put Obj-C (like an NSStatusItem) in with C?

_______________________________________________

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