Re: Lost ability to alt-drag IB items [Solved]
Re: Lost ability to alt-drag IB items [Solved]
- Subject: Re: Lost ability to alt-drag IB items [Solved]
- From: Ricky Sharp <email@hidden>
- Date: Fri, 10 Dec 2004 08:54:31 -0600
On Dec 9, 2004, at 9:56 PM, Ricky Sharp wrote:
At this point, it may be the lack of a setTag implementation
(NSActionCell implements it, but NSCell doesn't). Well, NSCell
probably does have an implementation that is throwing an exception
which produces the message in Console.
NSCell's implementation will raise a NSInternalInconsistencyException.
That is what is generating the "Stub implementation of -setTag by
NSCell does nothing" in Console when attempting to alt-drag.
I'll be experimenting later on with providing a setTag in my NSCell
subclass. I want to first read up on it to understand what I should
do in that method.
One of Apple's example (ProgressViewPalette) actually does implement
accessors for a tag iVar. It also encodes/decodes it in the NSCoding
methods.
I've done the same and now my widgets work a-ok. Alt-dragging lives
once again :)
BTW, I've been sending all this info into DTS. I filed an incident
just before I found this setTag fiasco. But, it will be helpful to
get their input on all this; after all, it could be a bug in IB :)
Definitely wasn't an IB bug.
I need to head out for a bit, but will follow up on this thread with
the minimal implementation one needs to do when deriving directly from
NSCell.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.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