Re: Cocoa equivalent for SetWindowProperty in Carbon
Re: Cocoa equivalent for SetWindowProperty in Carbon
- Subject: Re: Cocoa equivalent for SetWindowProperty in Carbon
- From: Graham Cox <email@hidden>
- Date: Thu, 19 Apr 2012 17:12:54 +1000
On 19/04/2012, at 4:10 PM, Sanjay Arora wrote:
> I am creating the NSWindow programmatically, and does not have a
> NSWindowController.
Well, it should.
> I want to associate some model with the window.
That is exactly what NSWindowController does.
> But I don't find anything in Cocoa.
It's called NSWindowController.
Cocoa's architecture is nothing like Carbon's. You cannot port a Carbon app to Cocoa in a 1:1 fashion. Instead, you have to learn the idioms and architecture of Cocoa. It's a big undertaking, but you'll glad you did. Even a fairly sketchy read of the overview documentation will quickly lead you to realise how naive your question was.
--Graham
_______________________________________________
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