• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Lost ability to alt-drag IB items [semi-solved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lost ability to alt-drag IB items [semi-solved]


  • Subject: Re: Lost ability to alt-drag IB items [semi-solved]
  • From: Ricky Sharp <email@hidden>
  • Date: Thu, 9 Dec 2004 21:56:33 -0600

I learn something new about palette's every hour :)

The culprit this time was any cell subclass I had that derived directly from NSCell. Alt-dragging failed. All cell subclasses that derive from NSActionCell work a-ok. That's why my button and the ClockControl example worked.

After doing some logging in both working and failing palettes, this interesting line popped in the Console for the failing palette.

Basically, the following was logged immediately upon the mouse-down for my option-click:

IICell -copyWithZone: (<IICell: 0x4ea4aa0>)
IICell -copyWithZone: (<IICell: 0x3df4f0>)
Stub implementation of -setTag by NSCell does nothing.
IICell -dealloc (<IICell: 0x3826f0>)
IICell -dealloc (<IICell: 0x3df4f0>)

You can see that something was telling my cells to immediately dealloc.

In a working palette, upon option-click, you only see copyWithZone. As you drag to make the matrix contain more/less cells, you'll see calls to copyWithZone and dealloc respectively.

When you finally release the mouse-button, you'll then see two dealloc calls that will balance the two copyWithZone calls when the option-click first started.


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.


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.

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 :)

___________________________________________________________
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


  • Follow-Ups:
    • Re: Lost ability to alt-drag IB items [Solved]
      • From: Ricky Sharp <email@hidden>
References: 
 >Lost ability to alt-drag IB items (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Zooming images in NSView
  • Next by Date: Re: Crazy Behind the Scenes Hard-wiring in AppKit?
  • Previous by thread: Lost ability to alt-drag IB items
  • Next by thread: Re: Lost ability to alt-drag IB items [Solved]
  • Index(es):
    • Date
    • Thread