Re: How to get custom widgets into nib file window ?
Re: How to get custom widgets into nib file window ?
- Subject: Re: How to get custom widgets into nib file window ?
- From: Uli Kusterer <email@hidden>
- Date: Tue, 24 Jul 2007 18:06:08 +0200
On 24.07.2007, at 10:00, Mickaël Remars wrote:
I created a subclass of NSView. I created an IBPalette and
IBInspector to manipulate that subclass within IB.
I can drag/add my custom NSView subclass from the palette to
another NSView, but I can't drag my custom NSView from the palette
to the top level nib objects window (ie the window where reside
'File'sOwner).
Can someone explain how to create custom top level nib objects ?
It's been ages since I did this, but I think you have to return
IBObjectPboardType from viewResourcePasteboardTypes: -- these are
defined in <InterfaceBuilder/IBPalette.h>. Not sure whether that's it
and whether I ever got it working, but might be worth looking around
there and doing a bit of trial and error if it doesn't work. I think
I also blogged about it ...
I blogged a bit about useful tricks and resources for doing this
when I last tried this in ... errr... three years ago:
http://www.zathras.de/angelweb/x2004-12-03.htm
Maybe that helps. I'd appreciate if you shared anything you find out.
I'll have to get back to this someday, and unless Apple completely
redoes this, I'll want the info.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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:
This email sent to email@hidden