[Fwd: Re: NSTextView unarchived from nib missing pointing hand cursor over links?]
[Fwd: Re: NSTextView unarchived from nib missing pointing hand cursor over links?]
- Subject: [Fwd: Re: NSTextView unarchived from nib missing pointing hand cursor over links?]
- From: John Stiles <email@hidden>
- Date: Fri, 06 Jan 2006 21:41:53 -0800
In case anyone is curious, I made a typo below--it should be "KFTypeSelectTableView." :)
Check it out if you ever wanted your NSTableView or NSOutlineView to work with type selection! It takes almost zero effort to integrate.
http://homepage.mac.com/kenferry/software.html#KFTypeSelectTableView
On Jan 6, 2006, at 4:23 PM, John Stiles wrote:
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
-gus
--
August 'Gus' Mueller
Flying Meat Inc.
http://flyingmeat.com/
_______________________________________________
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