RE: Cocoa equivalent for SetWindowProperty in Carbon

2012-04-19 Thread Sanjay Arora
is used to create the window could be associated with the NSWindow. How? Regards Sanjay -Original Message- From: Chris Hanson [mailto:c...@me.com] Sent: 19 April 2012 8:32 AM To: Sanjay Arora Cc: cocoa-dev@lists.apple.com Subject: Re: Cocoa equivalent for SetWindowProperty in Carbon

Re: Cocoa equivalent for SetWindowProperty in Carbon

2012-04-19 Thread Charles Srstka
On Apr 19, 2012, at 1:10 AM, Sanjay Arora wrote: I am creating the NSWindow programmatically, and does not have a NSWindowController. I want to associate some model with the window. I am not using NSDocument. In Carbon, SetWindowProperty allowed me to set the model with the window. But I

Re: Cocoa equivalent for SetWindowProperty in Carbon

2012-04-19 Thread Graham Cox
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

Re: Cocoa equivalent for SetWindowProperty in Carbon

2012-04-19 Thread Eric Schlegel
On Apr 17, 2012, at 11:53 PM, Sanjay Arora saar...@quark.com wrote: Hi I am a newbie on Cocoa application development and could not find any method in NSWindow which does the same job as SetWindowProperty used to do in Carbon, Could some one point me to right direction. Hi Sanjay, I can

Re: Cocoa equivalent for SetWindowProperty in Carbon

2012-04-18 Thread Chris Hanson
What end goal do you want to accomplish with an equivalent to SetWindowProperty? There isn't necessarily a 1:1 correspondence between API in different frameworks; describing your desired goal is more likely to lead to a solution. -- Chris On Apr 17, 2012, at 11:53 PM, Sanjay Arora

Re: Cocoa equivalent for SetWindowProperty in Carbon

2012-04-18 Thread Charles Srstka
On Apr 18, 2012, at 1:53 AM, Sanjay Arora wrote: Hi I am a newbie on Cocoa application development and could not find any method in NSWindow which does the same job as SetWindowProperty used to do in Carbon, Could some one point me to right direction. I’m not an expert on Carbon by any