Re: Minimal document-based app
Re: Minimal document-based app
- Subject: Re: Minimal document-based app
- From: ecir hana <email@hidden>
- Date: Tue, 01 May 2012 09:28:09 +0200
If nothing else, it would explain to me how things works, 20 lines of
code would help me better than 20 documentation pages. There tutorials
above certainly did the explaining very well.
Also, I don't really want to argue whether there is merit or not - I
would be more thankful for the eventual tutorial or code sample.
On Tue, May 1, 2012 at 8:08 AM, Graham Cox <email@hidden> wrote:
> I see no merit in trying to make a "minimal" document based app, whatever that is. It's usually misguided to try and build UI in code, it saves you nothing and makes it much harder to get anywhere.
>
> Just start a new Cocoa app and use the project template for a document based app. It gives you the necessary starting points, which though it adds a nib, it's extremely small. There is nothing to be gained by going some other route.
>
> --Graham
>
>
> On 30/04/2012, at 7:47 AM, ecir hana wrote:
>
>> Dear list,
>>
>> I'm trying to understand how the things in Cocoa works but I'm
>> struggling with one thing. I saw
>> http://cocoawithlove.com/2010/09/minimalist-cocoa-programming.html and
>> http://casperbhansen.wordpress.com/2010/08/15/dev-tip-nibless-development/
>> and I think I somewhat understood.
>>
>> Now, I would like to do the same but for a "Document-based
>> application". Please, does anyone know of a tutorial or example akin
>> to the ones above? Alternatively, what do I need to do to make it
>> work? I think I need to create NSDocumentController - but how does it
>> relate to NSApplication? And I create NSDocument from there? Frankly,
>> I'm bit lost...
>>
>> Thank you very much in advance!
>
_______________________________________________
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