Re: IBPalette Question
Re: IBPalette Question
- Subject: Re: IBPalette Question
- From: Ricky Sharp <email@hidden>
- Date: Tue, 26 Oct 2004 05:52:27 -0500
On Tuesday, October 26, 2004, at 03:49AM, Peter Spencer <email@hidden> wrote:
>
I have created a custom palette from a NSView which draws a coloured view
>
with a bevel and a title, it works fine. My problem is when I try to drag
>
say a NSButton into my custom view it is not embedded into it's local
>
coordinate system, I also cannot drag an instance of my custom object into
>
the nib palette of another app.
>
>
My feeling is that I may have to implement 'drag and drop' to call
>
'addSubview:' / 'addSubview:positioned:relativeTo:'?
Supposedly, that's the solution, but I've never been able to get it going.
A workaround is to just to embed your NSButton, etc. into a custom view (e.g by using IB's Layout | Make subviews of... menu item). Then, in the inspector for the custom view, set the custom class to your class. While editing, you won't see how everything renders. But if you test the interface, your custom view should render.
Rick Sharp
Instant Interactive(tm)
_______________________________________________
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