> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to