• 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: NSView subclass IB plug-ins conundrum
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView subclass IB plug-ins conundrum


  • Subject: Re: NSView subclass IB plug-ins conundrum
  • From: "Sean McBride" <email@hidden>
  • Date: Thu, 23 Oct 2008 14:12:25 -0400
  • Organization: Rogue Research

On 10/23/08 2:01 PM, Martin-Gilles Lavoie said:

>However, for some reason, IB itself doesn't recognise our view as
>being a subclass of NSView and it wont let me drop objects inside it,
>like it does for recular custom views. The object is treated as a non-
>container.

Salut Martin-Gilles!

// We allow all subviews to be manipulatable in IB
- (NSArray*)ibDefaultChildren
{
	NSArray* array = [NSArray arrayWithArray:[self subviews]];

	return array;
}

// We allow all child views to be moved in IB
- (BOOL)ibIsChildViewUserMovable:(NSView*)child
{
	return YES;
}

// We allow all child views to be resized in IB
- (BOOL)ibIsChildViewUserSizable:(NSView*)child
{
	return YES;
}

// Returns the container view for the children of the receiver
- (NSView*)ibDesignableContentView
{
	return self;
}

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSView subclass IB plug-ins conundrum (From: Martin-Gilles Lavoie <email@hidden>)

  • Prev by Date: Re: NSView subclass IB plug-ins conundrum
  • Next by Date: Re: NSView subclass IB plug-ins conundrum
  • Previous by thread: Re: NSView subclass IB plug-ins conundrum
  • Next by thread: Xcode 3 now upgrades?
  • Index(es):
    • Date
    • Thread