Re: Identifying NSTextViews
Re: Identifying NSTextViews
- Subject: Re: Identifying NSTextViews
- From: Graham Cox <email@hidden>
- Date: Wed, 29 Jul 2009 15:02:34 +1000
On 29/07/2009, at 2:54 PM, Rippit the Ogg Frog wrote:
My problem isn't getting a pointer to one of the NSTextViews. My
problem is figuring out which of those NSTextViews a given pointer
refers to.
It's trivial.
Make an outlet for each text view and hook it up in IB. Then do a
if([notification object] == myTextViewA)... type of thing. This is by
far the easiest way to identify things - the object's pointer is its
identity.
--Graham
_______________________________________________
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