FW: Andrew James

2013-06-17 Thread Andrew James
hello! http://www.airinfo.be/uf/hpnl/ffrs/fhejn.html Andrew James ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at

Re: Initializing NSWindow with Carbon window

2011-01-31 Thread Andrew James
views. Cheers, --aj - Original Message From: Uli Kusterer To: Andrew James Cc: list-cocoa-dev Sent: Mon, January 31, 2011 1:39:21 AM Subject: Re: Initializing NSWindow with Carbon window On 30.01.2011, at 11:17, Andrew James wrote: > I have a legacy builder class that creates a Carbo

Re: Initializing NSWindow with Carbon window

2011-01-30 Thread Andrew James
k down from this and write my own class that does the controlling of Cocoa vs. Carbon windows. --aj - Original Message From: Graham Cox To: Andrew James Cc: list-cocoa-dev Sent: Sun, January 30, 2011 8:18:23 PM Subject: Re: Initializing NSWindow with Carbon window On 31/01/2011, at

Re: Initializing NSWindow with Carbon window

2011-01-30 Thread Andrew James
ike showWindow. Implementing a window delegate my also help. I've got options that I'm going to explore. Cheers, --aj ____ From: Graham Cox To: Andrew James Cc: list-cocoa-dev Sent: Sun, January 30, 2011 3:04:38 AM Subject: Re: Initializing NSWindow with Carb

Initializing NSWindow with Carbon window

2011-01-30 Thread Andrew James
I have a legacy builder class that creates a Carbon window and I want to initialize an NSWindow with this WindowRef. I have a method on the builder GetProduct() that hands out the WindowRef. If I use commands like the following WindowRef w = builder.GetProduct(); ShowWindow( w ); SelectWindo

NSViewController and key value coding

2010-07-12 Thread Andrew James
All, I've been writing way to much code to populate an NSPopUpButton with an array that can change at any moment.  Due to that, I'd rather use Cocoa's Key Value Coding technology.  I've read Apple docs over the past two days in regards to key value coding and observing. To really cement my und

Re: App modal window and secondary thread

2010-03-19 Thread Andrew James
You can also consider creating a singleton class that wraps the worker thread so that you don't always bear the cost of creating the thread just to do some work.  This singleon class does need to be thread safe. Once that's been done provide a way to set the data that needs to be shared and the

Re: NSBrowser and tab order

2010-03-18 Thread Andrew James
arning experience. :) Cheers, --aj ____ From: Corbin Dunn To: Andrew James Cc: list-cocoa-dev Sent: Thu, March 18, 2010 7:40:06 AM Subject: Re: NSBrowser and tab order Aj -- I believe this was a bug fixed in 10.6; maybe 10.5. What OS are you on? The work around is to set it up in awakeFrom

NSBrowser and tab order

2010-03-18 Thread Andrew James
I have a nib file set up in Interface Builder with a window containing a single NSBrowser. I have set the NSBrowser as the window's initialFirstResponder... but for some reason when the window is displayed the NSBrowser does not receive keyboard focus and will not receive keyboard focus until I

Class instance defaults: e.g. NSBrowser

2010-03-17 Thread Andrew James
I am a relative newbie to Cocoa so I trying to make sure that my code reflects Cocoa's coding culture. I'm interested in whether or not instances of Cocoa classes can be expected to display default behavior.  I'll use NSBrowser's - (BOOL)sendsActionOnArrowKeys as an example. In Apple's document

Re: Better sorting using threads?

2010-03-15 Thread Andrew James
I do like about STL ( don't want to digress too far in this direction ) is that documentation provides gaurantees about Big O notation. Do this type of gaurantee exist anywhere in Cocoa's containers? --aj  From: Jeffrey Oleander To: Gwynne Raskind ;

Re: Better sorting using threads?

2010-03-12 Thread Andrew James
All, My concern is that keeping traditional C-arrays in sorted order means 1) finding the location for insert ( O(n) ) 2) copying a range of contiguous memory to make the location available 3) copying in new value I've made the assumption that NSArray wraps an old school contiguous C-style arra

Re: Better sorting using threads?

2010-03-11 Thread Andrew James
Does Cocoa have sorted containers so that an object can be inserted in sorted order?  If so it seems like this would be far less expensive. --aj From: Ken Ferry To: Ken Thomases Cc: Cocoa-Dev List Sent: Wed, March 10, 2010 11:37:31 PM Subject: Re: Better so

Delete NSDefaults while running

2008-04-19 Thread Andrew James
Hi, How would one go about deleting the preference file of a running application while in the application? or is there a way to run a application/command and then relaunch the application after its all completed? The main purpose is i want one of my programs to be more self repairing an