• 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: Outlet from Different Implementation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Outlet from Different Implementation?


  • Subject: Re: Outlet from Different Implementation?
  • From: Graham Cox <email@hidden>
  • Date: Tue, 16 Sep 2008 20:16:44 +1000


On 16 Sep 2008, at 5:53 pm, Jeshua Lacock wrote:

However, I tried using the valueForKey method as suggested, and I get a message "___TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION___".

Hrrrm. OK, that seems a bit odd. I dunno why that's happening, - valueForKey: is supposed to be able to find ivars even without accessor methods, though to be honest I've never, ever relied on that fallback behaviour, so it might be better to steer clear of it.


Any suggestions would be appreciated, or if someone could someone point me to a good "accessor method" example or documentation, I would be grateful.


Well, the accessor method I had in mind, in its entirety, is:

- (id)		myOutlet
{
    return MyOutlet;
}


note: by naming things as to their function you'd probably end up with a much more self-descriptive method.



hth,


Graham _______________________________________________

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


  • Follow-Ups:
    • Re: Outlet from Different Implementation?
      • From: Jeshua Lacock <email@hidden>
References: 
 >Outlet from Different Implementation? (From: Jeshua Lacock <email@hidden>)
 >Re: Outlet from Different Implementation? (From: Graham Cox <email@hidden>)
 >Re: Outlet from Different Implementation? (From: Jeshua Lacock <email@hidden>)

  • Prev by Date: Re: Can't get to work setDoubleAction on NSMatrix with NSButtonCell
  • Next by Date: Re: structs in Mutable containers
  • Previous by thread: Re: Outlet from Different Implementation?
  • Next by thread: Re: Outlet from Different Implementation?
  • Index(es):
    • Date
    • Thread