• 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: Clark Cox <email@hidden>
  • Date: Mon, 19 Jan 2004 09:25:22 -0500

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

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.

  • Follow-Ups:
    • Re: How to know the name of the Outlet we are typing in?
      • From: "Ashwin A Prabhu" <email@hidden>
  • Prev by Date: RE: How to know the name of the Outlet we are typing in?
  • Next by Date: RE: How to know the name of the Outlet we are typing in?
  • 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