Cocoa vs User: 0 - 1
Cocoa vs User: 0 - 1
- Subject: Cocoa vs User: 0 - 1
- From: Stéphane Sudre <email@hidden>
- Date: Sat, 17 Apr 2004 13:55:30 +0200
I've received a bug report from an user which is interesting from a
Cocoa developer point of view.
The problem the user saw was the following one:
1) He launched the application and then moved it from its current
location to another one.
2) Then he used the About... command in the Application menu.
The application told him that the .nib file used to display the About
box couldn't be found.
Internally, the application has multiple nibs and uses lazy loading to
speed startup. So when the user selects the About... command for the
first time, the application loads the nib using [NSBundle loadNibNamed:
owner:].
The "bug" in Cocoa is that the loadNibNamed:owner: API does not take
into account that the application has been moved. Nor does any other
APIs as images in NSImageView are lost on first display. So it does not
found the Nib anymore.
One workaround could be to load every nib at launch time.
But this still does not solve the problem for Multi-document cocoa
applications and images resources.
So the question is:
- is this a bug in the API?
- is this a bug in the Application itself even-though it's just using
the recommended APIs?
- is this a bug in the Finder and Terminal: an user should not be
allowed to move an application while it's running?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.