Re: [Q] How can one programatically begin a text editing session in a NSTextField?
Re: [Q] How can one programatically begin a text editing session in a NSTextField?
- Subject: Re: [Q] How can one programatically begin a text editing session in a NSTextField?
- From: Eric Gorr <email@hidden>
- Date: Thu, 5 Feb 2009 12:26:01 -0500
On Feb 5, 2009, at 12:15 PM, Kyle Sluder wrote:
On Thu, Feb 5, 2009 at 11:29 AM, Eric Gorr <email@hidden>
wrote:
In case it matters and in case someone can suggest something
better, the
reason why I need to do this is because I have a NSView
(ResourceItem) which
contains both a NSImageView and a NSTextField. You can see a
picture here:
Maybe you should consider using NSImageCell and NSTextFieldCell
instead of subviews?
Sadly, can't use cells. Believe me, I tried my best working with DTS
as well.
They have undesirable behaviors associated with them that I do not
have control over. Basically, if you need to do something custom with
them that doesn't involve only changing the look, they likely aren't
for you. I somehow managed to hit their limitations rather quickly
even though I didn't think I was trying to do anything particularly
uncommon.
Furthermore, considering that some of the newest controls, like
NSCollectionView, etc. are not based on the Control/Cell pattern, it
would seem that Apple is moving away from them too and making NSView's
efficient enough that the problems described by Hillegass in his Cocoa
book, which lead to the creation of NSCell's, are going away.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden