Re: Sent Actions, Delegates, Outlets
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