Re: assign property behaves differently from simple instance variable???
Re: assign property behaves differently from simple instance variable???
- Subject: Re: assign property behaves differently from simple instance variable???
- From: Matt Neuburg <email@hidden>
- Date: Tue, 14 Dec 2010 10:15:52 -0800
On Dec 14, 2010, at 10:01 AM, Keary Suska wrote:
> On Dec 13, 2010, at 12:01 PM, Matt Neuburg wrote:
>
>> self->firstResponder = tf;
>
> Well, the proper syntax is self.firstResponder . Using the deference is probably a back-door way to access the class struct. Unless I misunderstand something....
>
You do; that's irrelevant to the example. Indeed, I deliberately left the code looking this way in order to emphasize the fact that synthesizing the accessors for firstResponder breaks the app even if I never use them. m.
--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf
AppleScript: the Definitive Guide, 2nd edition
http://www.tidbits.com/matt/default.html#applescriptthings
Take Control of Exploring & Customizing Snow Leopard
http://tinyurl.com/kufyy8
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
_______________________________________________
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