Re: IBPalette Question
Re: IBPalette Question
- Subject: Re: IBPalette Question
- From: Ricky Sharp <email@hidden>
- Date: Tue, 26 Oct 2004 11:50:50 -0500
On Tuesday, October 26, 2004, at 11:36AM, Vince DeMarco <email@hidden> wrote:
>
On Oct 26, 2004, at 3:52 AM, Ricky Sharp wrote:
>
>> 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.
>
>
Try this
>
>
>
IBViewProtocol.h:// Returns YES if view is a container
>
IBViewProtocol.h:- (BOOL)ibIsContainer;
I have seen that, but it hasn't worked for me. I know others (names escape me right now) have tried it as well with no luck.
I think I'll just sit down and file an enhancement to have Apple write another IB example that can cover this as well as other tasks that have been difficult to do (e.g. picking up images from a parent project).
I'm hoping that I've signed up early enough to make it into the Tiger Tech Talk at the Chicago location next month. If possible, I plan to ask some of these IB 'how-to' questions. I'll also be able to bring all my IB palette code. If I can learn anything, or put together a sample palette myself, I'll definitely share it.
--
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