Re: Can't add/edit subviews to NSView subclass via IBPlugin
Re: Can't add/edit subviews to NSView subclass via IBPlugin
- Subject: Re: Can't add/edit subviews to NSView subclass via IBPlugin
- From: Gabriele de Simone <email@hidden>
- Date: Fri, 23 Nov 2007 16:08:02 -0500
On Nov 23, 2007, at 3:36 PM, Ricky Sharp wrote:
On Nov 23, 2007, at 2:18 PM, Gabriele de Simone wrote:
[...]- Contrary to IB 2, the new version won't let me drag subviews
inside my custom view. Even if I double click the custom view to
"focus" its contents, every control I drag over it is added as a
sibling rather than child.
- If I open a nib file created with IB 2 which contains one of
these custom views, IB 3 will display any children (subviews)
embedded in it, but won't let me move them or drag them out.
When moving from IB 2.x to 3.x, there are API changes. Container
views must now at least implement ibDesignableContentView. I cover
this in my sample code MyIBPlugIn.
Thanks, I wish I had poked around more carefully :-)
Is there a specific flag/method that needs to be implemented to
restore the above functionality?
A slightly less annoying limitation is the following: IB 3
remembers that this NIB file required a custom palette. Although
palettes don't exist anymore, and IB 3 works with instances of the
same view via the new IBplugin, it keeps throwing an error message
saying that the old palette is required. Any way to kill this
warning? No amount of re-saving the NIB did the trick...
This has already come up as well. Two options here. If you must
keep the nibs in 2.x format, you'll have to live with this warning
(definitely file a bug/enhancement). Or, save in one of the new 3.x
formats.
Unfortunately I can't get rid of the warning even if I save the NIB
with 10.5 as the Deployment target, and in the process I discovered
that IB 3 just forgets the deployment target setting anyway... these
two are definitely ending up on Radar.
Thanks!
_______________________________________________
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