• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: I Never get 'self' in Obj-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I Never get 'self' in Obj-C


  • Subject: Re: I Never get 'self' in Obj-C
  • From: Michael Vannorsdel <email@hidden>
  • Date: Mon, 5 May 2008 17:07:04 -0600

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 (email@hidden)

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:
This email sent to email@hidden


References: 
 >I Never get 'self' in Obj-C (From: "J. Todd Slack" <email@hidden>)
 >Re: I Never get 'self' in Obj-C (From: Steve Bird <email@hidden>)
 >Re: I Never get 'self' in Obj-C (From: "J. Todd Slack" <email@hidden>)

  • Prev by Date: Re: Trouble using NSMatrix with radiobuttons and using NSPopUp buttons
  • Next by Date: Re: Accessing attributes of XML
  • Previous by thread: Re: I Never get 'self' in Obj-C
  • Next by thread: Re: I Never get 'self' in Obj-C
  • Index(es):
    • Date
    • Thread