• 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: Sent Actions, Delegates, Outlets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sent Actions, Delegates, Outlets


  • Subject: Re: Sent Actions, Delegates, Outlets
  • From: mmalc crawford <email@hidden>
  • Date: Thu, 24 Jul 2008 10:47:39 -0700


On Jul 23, 2008, at 10:51 PM, Graham Cox wrote:

2) I have found that IB automatically treats all member variables of
my custom view's class that are of type "id" or "id<...>" as outlets,
i.e. they appear in the list of outlets on Ctrl+click. This is not
always desirable. How do I prevent some of those variables from being
treated like outlets?
Yep, I noticed that too. Looks like a bug for now.

I'm not sure what the bug is here? IB has always treated ids as outlets.

Going forward, though, you're encouraged to use declared properties -- see
<http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_5_section_2.html >
for an example. (The rationale is that they make memory management semantics clear.)


mmalc

_______________________________________________

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: 
 >Sent Actions, Delegates, Outlets (From: "Oleg Krupnov" <email@hidden>)
 >Re: Sent Actions, Delegates, Outlets (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSLog on releasebuild
  • Next by Date: Re: Is checking -count worth it?
  • Previous by thread: Re: Sent Actions, Delegates, Outlets
  • Next by thread: Re: Sent Actions, Delegates, Outlets
  • Index(es):
    • Date
    • Thread