• 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
Cocoa vs User: 0 - 1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Cocoa vs User: 0 - 1
      • From: Andreas Mayer <email@hidden>
    • Re: Cocoa vs User: 0 - 1
      • From: Ondra Cada <email@hidden>
    • Re: Cocoa vs User: 0 - 1
      • From: Rosyna <email@hidden>
  • Prev by Date: SOLVED (workaround): Removing *other* app default?!?
  • Next by Date: Re: The bitmap image type from an NSBitmapImageRep?
  • Previous by thread: Progress bar implemantation in Cocoa
  • Next by thread: Re: Cocoa vs User: 0 - 1
  • Index(es):
    • Date
    • Thread