• 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: IBPalette Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IBPalette Question


  • Subject: Re: IBPalette Question
  • From: Vince DeMarco <email@hidden>
  • Date: Tue, 26 Oct 2004 09:36:00 -0700


On Oct 26, 2004, at 3:52 AM, Ricky Sharp wrote:




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.

Try this


IBViewProtocol.h:// Returns YES if view is a container
IBViewProtocol.h:- (BOOL)ibIsContainer;

Vince






_______________________________________________
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: IBPalette Question
      • From: Ricky Sharp <email@hidden>
References: 
 >IBPalette Question (From: Peter Spencer <email@hidden>)
 >Re: IBPalette Question (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: Help Help or is there any logic to CFBundleHelpBookName
  • Next by Date: Re: ADC TV w/ ADC Select
  • Previous by thread: Re: IBPalette Question
  • Next by thread: Re: IBPalette Question
  • Index(es):
    • Date
    • Thread