Re: NSPathControl doesn't work in xib?
Re: NSPathControl doesn't work in xib?
- Subject: Re: NSPathControl doesn't work in xib?
- From: David Morford <email@hidden>
- Date: Fri, 28 Dec 2007 11:20:12 -0800
On Dec 27, 2007, at 9:57 PM, Stephen F. Booth wrote:
I've come across something that has me stumped- different behavior
depending if a project resource is a .xib or a .nib.
If I add an NSPathControl to a window and set the type to Pop Up,
the xib file will not compile:
CompileXIB /tmp/foo/English.lproj/Untitled.xib
cd /tmp/foo
/Developer/usr/bin/ibtool --errors --warnings --notices --output-
format human-readable-text --compile /tmp/foo/build/Release/foo.app/
Contents/Resources/English.lproj/Untitled.nib /tmp/foo/English.lproj/
Untitled.xib
/* com.apple.ibtool.errors */
Internal Error:
Description: ibtool failed with exception: Error (1002) creating
CGSWindow
However, if I save the .xib as a .nib everything works as expected!
Another strange thing I've noticed with NSPathControl is that if I
set the allowed types to "public.folder", drag operations to them
only work when the project resource is a .nib vs. a .xib.
I am initially using nothing but .xibs for all my Leopard-specific
development. What is it about the .xib format that could be causing
these issues? I always assumed they were compiled to
identical .nibs (compared to what IB would produce), but that
doesn't seem to be the case.
I noticed this as well. It seems that if any path value is set, the
images from the path are encoded into the .xib. Take a look at the
size of the .xib file itself and it will likely be rather huge.
Set the 'Path' in for the Path Control in IB3 to nothing... not even
the '/' and set the initial path in your controller. This worked for me.
Dave
_______________________________________________
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