• 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: "Jonathan E. Jackel" <email@hidden>
  • Date: Mon, 19 Jan 2004 09:24:24 -0500

> 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.

You don't need the outlet name. The outlet name simply stands for the
object -- it isn't the object itself. You already have a reference to the
right text view object by using [theNotification object]. Something like
this should work: [[theNotification object] setFrame:newRect];

Jonathan
_______________________________________________
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.

  • Prev by Date: how to capture data on USB port
  • Next by Date: Re: How to know the name of the Outlet we are typing in?
  • Previous by thread: 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