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: "Ashwin A Prabhu" <email@hidden>
- Date: Mon, 19 Jan 2004 20:14:20 +0530
Hi Jonathan,
I tried resizing the views by using its object but it wasnt resizing.
Used NSView's setFrameSize: method to set its size and also used
[textviewObject setNeedsDisplay:YES] method to redraw it.
But it didn't work.
Thanks for your help.
Cheers,
Ashwin
Apple Group- GMACC Team
Tata Consultancy Services
Table No: 78 Intersil-2nd Floor
Phone: +91 22 5668 6239/6278
TCS VISION : GLOBAL TOP 10 BY 2010
"Jonathan Jackel" <email@hidden>
01/19/04 07:53 PM
To: "Ashwin A Prabhu" <email@hidden>,
<email@hidden>
cc:
Subject: RE: How to know the name of the Outlet we are
typing in?
>
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.