Re: cocoa-dev digest, Vol 2 #933 - 14 msgs
Re: cocoa-dev digest, Vol 2 #933 - 14 msgs
- Subject: Re: cocoa-dev digest, Vol 2 #933 - 14 msgs
- From: Paul Fox <email@hidden>
- Date: Fri, 12 Jul 2002 21:16:20 +0100
>
The method you're looking for is -[NSCell setScrollable:]. Just
>
call it on the NSTextField's cell and you should be set.
>
>
--
>
Brian Webster
>
email@hidden
>
http://homepage.mac.com/bwebster
I'm a little confused...maybe someone can help.
I am creating an NSTextField in order to create a normal
editable field. Is this correct?
The method stated is for NSCell and NSTextField is not derived
from NSCell - although NSTextFieldCell does obviously derive from this.
I'm not sure what I am doing wrong -- using NSTextField in the first place?
But if I try to use NSTextFieldCell then it has the 'wrong' methods
I need. (If I should be using NSTextFieldCell then hopefully
I can map my method calls).
I've read about NSWindow having a single editing window which is remapped
as needed to the appropriate responder cell. Is this implying I
should be capturing this remap and doing setScrollable: on that thing
as it bumps around?
...
Just browsing NSControl - which has a cell: method. Is this the baby
I need -- grab the cell: from the superclass, then set the attribute
there?
If so, can anyone explain this object hierarchy to me? Why have
a 'shadow' object in the superclass? Seems a little bit bizarre to me,
but maybe its for some form of efficiency (multiple inheritance - kinda)?
thanx
_______________________________________________
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.