• 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: Cocoa equivalent for SetWindowProperty in Carbon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Displaying '%' in the UI (From: The Rhythmic <email@hidden>)
 >Re: Displaying '%' in the UI (From: Velocityboy <email@hidden>)
 >Cocoa equivalent for SetWindowProperty in Carbon (From: Sanjay Arora <email@hidden>)
 >Re: Cocoa equivalent for SetWindowProperty in Carbon (From: Chris Hanson <email@hidden>)
 >RE: Cocoa equivalent for SetWindowProperty in Carbon (From: Sanjay Arora <email@hidden>)

  • Prev by Date: Re: Tabbing between text fields
  • Next by Date: Re: Updating NSMenu while it's open
  • Previous by thread: Re: Cocoa equivalent for SetWindowProperty in Carbon
  • Next by thread: Re: Cocoa equivalent for SetWindowProperty in Carbon
  • Index(es):
    • Date
    • Thread