Re: NSTextView unarchived from nib missing pointing hand cursor over links?
Re: NSTextView unarchived from nib missing pointing hand cursor over links?
- Subject: Re: NSTextView unarchived from nib missing pointing hand cursor over links?
- From: John Stiles <email@hidden>
- Date: Fri, 6 Jan 2006 16:23:28 -0800
I've used poseAsClass to deal with objects archived in nibs.
(Specifically, I used KFTypeSelectViewTableView, which is awesome.
You need to use posing to make it work with NSOutlineViews. Anyway, I
highly recommend it.) I think there might be certain limitations; for
example, you might not be able to add member variables to your
subclass. I know KFTypeSelectViewTableView used some trick with
dictionaries to store state.
On Jan 6, 2006, at 3:35 PM, Daniel Jalkut wrote:
As a possible general workaround, could you subclass NSTextView and
override awakeFromNib to do the desired attribute settings?
You could have the subclass pose as NSTextView, so you wouldn't
have to change the class associations in IB. When Apple fixes the
bug you can conditionalize the poseAs class on AppKit version.
I'm curious to hear whether there are dangers to this approach that
I am not considering. Is posing as a class strong enough to change
the instantiated class of archived IB objects?
Daniel
On Jan 6, 2006, at 5:42 PM, Douglas Davidson wrote:
Is there anything I can do to work around the problem? (A general
workaround would be great, so I don't have to paste a workaround
into every view controller, but I'd be happy with any workaround.)
File a bug. The workaround would be to manually set the
linkTextAttributes on the text view; you can see what an
appropriate set of values would be by interrogating one of your
programmatically created text views.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40blizzard.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden