Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do you get an NSCell subclass into a Palette?



In Interface Builder, the "Data" palette contains several items that are subclasses of NSActionCell: NSSliderCell, NSStepperCell, NSTextFieldCell, etc. I want to build a Palette which contains an NSActionCell subclass like that.

In my Palette project, I have a window, the "Palette View" into which my palette items need to be instantiated.

To instantiate a subclass of NSView, I drag in the "Custom View" and subclass it.

But how do I instantiate a subclass of NSActionCell? There is no generic "NSActionCell" in any of the palettes to drag in, and the "Instantiate..." menu item is always disabled.

I looked through all the Interface Builder - Palette examples I could find, but none of them do any cells, only views. How did they do that?

Thanks a bunch,

Jerry Krinock
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.