RE: How to know the name of the Outlet we are typing in?
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.