• 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
InterfaceBuilder: how to let an object contains other objects?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

InterfaceBuilder: how to let an object contains other objects?


  • Subject: InterfaceBuilder: how to let an object contains other objects?
  • From: Stephane Sudre <email@hidden>
  • Date: Thu, 21 Jul 2005 19:51:05 +0200

I have a subclass of NSView.

I added this NSView to a custom palette.

I would like to be able to add views inside instances of this subclass in Interface Builder.

I added this:

- (BOOL)ibIsContainer
{
	return YES;
}

- (id)ibNearestTargetForDrag
{
	return self;
}

I can add views in IB by dragging them into the subclass instance BUT:

- I can't double-click on the item to edit the views

- When I drag a new view/control inside the subclass instance, I can move the other views but the first moved view leaves a ghost.

Is there any sample code available somewhere detailing how to do this?

Search in various locations led to disappointing results.

_______________________________________________
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


  • Prev by Date: Re: <incomplete_type> in the debugger
  • Next by Date: xcode project: bsd static lib question
  • Previous by thread: Re: "Deployment" build style rises from the dead.
  • Next by thread: xcode project: bsd static lib question
  • Index(es):
    • Date
    • Thread