RE: Outlets / IBOutlet declarations (was Re: Interface Builder & Wiring Objects)
RE: Outlets / IBOutlet declarations (was Re: Interface Builder & Wiring Objects)
- Subject: RE: Outlets / IBOutlet declarations (was Re: Interface Builder & Wiring Objects)
- From: "Jeff Laing" <email@hidden>
- Date: Mon, 17 Nov 2008 22:33:16 -0700
- Thread-topic: Outlets / IBOutlet declarations (was Re: Interface Builder & Wiring Objects)
> If you declare a property:
>
> @property (nonatomic, assign) MyLabel *label1;
>
> but make the connection in IB to mLabel1, then the property accessor
> isn't used. So the outlet is set using setValue:forKey:. Which
> results in the value being retained, precisely as described in the
> documentation...
>
>
<http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptu
>
al/LoadingResources/CocoaNibs/chapter_3_section_4.html#//apple_ref/doc/
> uid/10000051i-CH4-SW6
How about:
http://developer.apple.com/samplecode/CacheInfo-MacOSX/listing1.html
(for example) which has the IBOutlet tag on the instance variables
rather than the properties; I'll bet its different because properties
and instance vars have the same name, isn't it?
(Note, this isn't the only one I've seen this pattern in, its just the
first that came to hand)
That example declares dozens of IBOutlet's, whose properties are
(nonatomic,retain) and doesn't release any of them in its dealloc.
_______________________________________________
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