Re: Identifying a specific Mac model

2015-09-14 Thread Robert Tillyard
Hello, John, I use this to get the model number: + (NSString *)computerModel { char modelBuffer[256]; size_t sz = sizeof(modelBuffer); if (0 == sysctlbyname("hw.model", modelBuffer, &sz, NULL, 0)) { modelBuffer[sizeof(modelBuffer) - 1] = 0;

Re: Sorting an NSTableView bound to an NSArrayController.

2012-06-29 Thread Robert Tillyard
Thank you, Willeke, That worked brilliantly. Regards, Rob. On 29 Jun 2012, at 22:15, Willeke wrote: > > Op 28 jun 2012, om 17:44 heeft Robert Tillyard het volgende geschreven: > >> >> I now I need to put a key and sort descriptor in IB but don't know what cod

Sorting an NSTableView bound to an NSArrayController.

2012-06-28 Thread Robert Tillyard
Hello, I'm writing an application that handles results for a running club. I have an NSTableView that has columns bound to a CoreData Entity such as Entries.arrangedObjects.position, position is an NSString that contains numbers such as @"1" and @"2" or @"" but the position can also be @"DNF" (

Re: NSTextField Tab Order. (Fixed)

2012-06-13 Thread Robert Tillyard
On 13 Jun 2012, at 22:50, Quincey Morris wrote: > On Jun 13, 2012, at 14:15 , Robert Tillyard wrote: > >> Window is created from a XIB using: >> >> - (id)initWithManagedObjectContext:(NSManagedObjectContext *)inMoc >> { >> if ((self = [super initWithWindo

Re: NSTextField Tab Order.

2012-06-13 Thread Robert Tillyard
Hello, Ken, Thank you for your reply. On 13 Jun 2012, at 10:47, Ken Thomases wrote: > On Jun 13, 2012, at 3:40 AM, Robert Tillyard wrote: > >> mind you despite window being hooked up in IB window == NULL > > You need to figure this out first. It's indicative of

NSTextField Tab Order.

2012-06-13 Thread Robert Tillyard
Hello, All, I have a window with a number of NSTextFields in two columns. The natural flow of information would be to fill in one column then the other but the tab order goes left to right then down. I've tried hooking up the nextKeyView in IB but that doesn't help. I've also used [window setA

Re: [iPhone] Sample code for live camera stream?

2012-05-25 Thread Robert Tillyard
On 25 May 2012, at 16:28, Fritz Anderson wrote: > I know I'm replying to a two-and-a-half-year-old thread, but I'm curious… > > On 15 Dec 2009, at 5:14 PM, Luke the Hiesterman wrote: > >> On Dec 15, 2009, at 3:11 PM, Gabriel Zachmann wrote: >> >>> According to this >>> http://www.tuaw.com/2009/

Re: WWDC

2012-04-25 Thread Robert Tillyard
Although I'd love to go to WWDC being based in the UK makes it expensive and difficult but I don't feel that I miss out too much as I can watch the sessions which really helps me learn new stuff. Regards, Rob. On 25 Apr 2012, at 20:11, Thomas Davie wrote: > Do you have a bug number that I coul

Core Image Capture: ICScanner and brightness/contrast adjustments.

2011-10-05 Thread Robert Tillyard
Hello, I'm struggling to find documentation on using ICScanner apart from the Scanner Browser example which was really great and helped a lot but the images that are scanned are too light. In some scanner apps the user can set the brightness/contrast then scan to get a better image. Do I need

Re: Scanning images

2011-08-09 Thread Robert Tillyard
irements are Mac OS X > 10.6 or later. > > I still tried to compile it, and ImageCaptureCore.Framework doesn't exists on > 10.5.8 > > How did you get it to work on 10.5 ? > > Thanks. > > Robert Tillyard wrote: >> Hello, Eric, >> Take a look at th

Re: Instantly delete a directory without recursion?

2010-10-04 Thread Robert Tillyard
Hello, Oleg, If you're worried about the time this would take and you need an instant results you could rename the folder (which is virtually instantaneous) then remove the renamed folder and it's contents in a background thread. Regards, Rob. On 4 Oct 2010, at 09:03, Oleg Krupnov wrote: > Hi

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-15 Thread Robert Tillyard
I keep meaning to file an enhancement request for the space before ()'s, I have to go back and manually change every occurrence and then add spaces after the commas in the function arguments. I also prefer - (void)foo { } over - (void)foo { } Regards, Rob. On 16 Oct 2009, at 02:30, Rolan

Re: Getting the Generic Hard Disk Icon?

2009-03-27 Thread Robert Tillyard
Hello, Dave, There might be a better way but I've been using: NSImage *icon = [[NSWorkspace sharedWorkspace] iconForFile:@"/"]; You will need to know the UNIX path of the disk first. Regards, Rob. On 27 Mar 2009, at 10:58, Dave wrote: Hi All, Where can I get the Icon for the standard Inter

Re: In receiver application, getting file passed in from NSWorkspace openFile:withApplication:

2008-03-17 Thread Robert Tillyard
If you're looking fot the equivalent of argc/argv you might be looking for... NSProcessInfo *procInfo = [NSProcessInfo processInfo]; NSArray *args = [procInfo arguments]; Regards, Rob. On 17 Mar 2008, at 16:56, Ryan Chapman wrote: Hi all, I have an application that uses NSWorkspace ope