• 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 coding style : How to refer to a document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa coding style : How to refer to a document


  • Subject: Cocoa coding style : How to refer to a document
  • From: Julien Palmas <email@hidden>
  • Date: Mon, 4 Apr 2005 13:53:20 +0900

I've almost finished developing my first document-based application.

During the development stages, I've experiences a lot of situations that forced me to rethink my application design. I must say that I am in no way a professional programmer.

One of the more annoying things have been the way to refer to the instance of NSDocument. My application loads different nibs according to the type of file I open, and some of those nibs have buttons that trigger actions which would like to access the NSDocument subclass instance.

The only workaround I found was to add a reference to the document in the nib owner class. And when the nib owner is initialised, by the document, I set this reference.

I think this is quite ugly and would like to know if there is another way to do so.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Cocoa coding style : How to refer to a document
      • From: Julien Palmas <email@hidden>
  • Prev by Date: Re: This has to be easy...
  • Next by Date: Re: Unable to view Drawer
  • Previous by thread: Re: Cocoa-dev Digest, Vol 2, Issue 452
  • Next by thread: Re: Cocoa coding style : How to refer to a document
  • Index(es):
    • Date
    • Thread