• 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
Re: Minimal document-based app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Minimal document-based app


  • Subject: Re: Minimal document-based app
  • From: Richard Somers <email@hidden>
  • Date: Wed, 02 May 2012 08:44:49 -0600

On May 2, 2012, at 7:19 AM, ecir hana wrote:

> - I saw that Xcode named the Info.plist differently (it prepends my project
> name to it) - is it ok just to call it Info.plist? Is there any convention?

https://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/ConfigFiles.html


> - this CFBundleDocumentTypes - what if I wanted to have only one kind of
> documents? Does it have to be an array as well? What is the absolute
> minimum every CFBundleDocumentTypes must contain?

https://developer.apple.com/library/mac/#documentation/CoreFOundation/Reference/CFBundleRef/Reference/reference.html


> - is it really the case that I don't need the AppDelegate? It currently
> makes sense to me but maybe I'm missing something?

http://cocoawithlove.com/2008/11/singletons-appdelegates-and-top-level.html


> - I don't want to put the window in init, where else should I put it? Does
> NSDocument have an equivalent of applicationDidFinishLaunching, i.e. when
> the document is created is there any callback fired?

https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/nsdocument_Class/Reference/Reference.html


> - new windows are positioned over the previous ones - I know this is
> because of that NSMakeRect() - the application created using Xcode (with
> NIBs) put every new window slightly to the right, slightly below the
> previous window - what is responsible for it? The NIB?

It is called window cascading.

https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/nswindowcontroller_Class/Reference/Reference.html


You should also read this.

http://cocoawithlove.com/2008/03/cocoa-application-startup.html

--Richard


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Minimal document-based app (From: ecir hana <email@hidden>)
 >Re: Minimal document-based app (From: Fritz Anderson <email@hidden>)
 >Re: Minimal document-based app (From: "email@hidden" <email@hidden>)
 >Re: Minimal document-based app (From: Wade Tregaskis <email@hidden>)
 >Re: Minimal document-based app (From: "email@hidden" <email@hidden>)
 >Re: Minimal document-based app (From: ecir hana <email@hidden>)

  • Prev by Date: Re: Minimal document-based app
  • Next by Date: Re: NSTableview tooltip bug?
  • Previous by thread: Re: Minimal document-based app
  • Next by thread: Re: Minimal document-based app
  • Index(es):
    • Date
    • Thread