• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to know the name of the Outlet we are typing in?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to know the name of the Outlet we are typing in?


  • Subject: Re: How to know the name of the Outlet we are typing in?
  • From: "Ashwin A Prabhu" <email@hidden>
  • Date: Mon, 19 Jan 2004 20:17:25 +0530

Hi Clark,

Absolutely true!!! Thanks for reminding me not to think too much :-)

I am able to compare the object with its name.
i am using something like
if(OultetName/InstanceVariable == [aNotification object])
{
//resize the views.
}

Thanks once again.

Cheers,
Ashwin





Clark Cox <email@hidden>
01/19/04 07:55 PM

To: Ashwin A Prabhu <email@hidden>
cc: email@hidden
Subject: Re: How to know the name of the Outlet we are
typing in?



On Jan 19, 2004, at 08:48, Ashwin A Prabhu wrote:

> Hi All,
>
> I have a problem differentiating between outlets.
> I have 2 Text Views(say T1 and T2) and in one of the Text Views(say
> T2) i
> am changing the Text.
> The change of the Text i can catch using the delegate method of
> NSTextview's textDidChange.
> In this method i can get the object by using NSNotifications 'object'
> method.
> But i am unable to get the information as to what the Outlet's name
> is, in
> which the Text is being changed.
> I will requiring the Outlets name because i want to resize the same.
>
> Could anyone please help me out.

The outlet name is the same as the name of the instance
variable. Just
compare the result of the -[NSNotification object] method to your
instance variables to find out which one is equal.

--
Clark S. Cox III
email@hidden
http://homepage.mac.com/clarkcox3/
http://homepage.mac.com/clarkcox3/blog/B1196589870/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: How to know the name of the Outlet we are typing in? (From: Clark Cox <email@hidden>)

  • Prev by Date: RE: How to know the name of the Outlet we are typing in?
  • Next by Date: Button key equivalent causes button to be pressed twice
  • Previous by thread: Re: How to know the name of the Outlet we are typing in?
  • Next by thread: RE: How to know the name of the Outlet we are typing in?
  • Index(es):
    • Date
    • Thread