InterfaceBuilder: how to let an object contains other objects?
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