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: NSSavePanel default file type

2012-06-13 Thread Kurt Sutter
I have a save panel with a custom accessory view, but the file type popup is created by NSSavePanel If I had an offiacial way to get the NSPopUpButton I could send it a message to select the right item. Is there a way to get that button object? > > > Are you using a pre-built export dialog o

Re: NSTextField Tab Order.

2012-06-13 Thread Ken Thomases
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 a deeper problem. Are you referring to the window property of a custom subclass of NSWindowController? Is this window contro

OS constant cause "32-bit RIP relative reference out of range" linker error on x64

2012-06-13 Thread Vojtěch Meluzín
Hi, I'm trying to make x64 work on XCode 4 Mac OS 10.7, but whenever I use a system constant, such as kCFAllocatorDefault, I get this linker error (on x86 it works fine): ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in __ZN10M

Re: OS constant cause "32-bit RIP relative reference out of range" linker error on x64

2012-06-13 Thread Fritz Anderson
On Wed, June 13, 2012 6:16 am, Vojtech Meluzí­n wrote: > I'm trying to make x64 work on XCode 4 Mac OS 10.7, but whenever I use a system constant, such as kCFAllocatorDefault, I get this linker error (on x86 it works fine): > > ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-p

Re: OS constant cause "32-bit RIP relative reference out of range" linker error on x64

2012-06-13 Thread Dave Zarzycki
Please reduce this down to a simple test case. Thanks! On Jun 13, 2012, at 4:16 AM, Vojtěch Meluzín wrote: > Hi, > > I'm trying to make x64 work on XCode 4 Mac OS 10.7, but whenever I use a > system constant, such as kCFAllocatorDefault, I get this linker error (on x86 > it works fine): > >

Sandoxing: Creating a security-scoped bookmark for contents of a user-specified directory.

2012-06-13 Thread douglas welton
Hi All, My application allows the user to navigate to a directory and read a collection of image files. Once read, the user can arbitrarily keep any subset of the acquired images. Currently (un-sandboxed), I use NSFileManager to get the URLs for the files in the directory. I store the returned

Re: Sandoxing: Creating a security-scoped bookmark for contents of a user-specified directory.

2012-06-13 Thread Tim Schröder
Actually, this should be quite possible by using document-scoped bookmarks. If Apple's documentation doesn't help you, you could have a look at the sample project linked here: http://stackoverflow.com/questions/10259692/app-sandbox-document-scoped-bookmark-not-resolving-not-returning-any-error/1

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 a deeper problem. I've checked

Re: TextField not updated in a sheet for document-based Cocoa app

2012-06-13 Thread Gilles Celli
Graham, Following your suggestions I tried with [[NSOperationQueue mainQueue] addOperationWithBlock: to update the textField while processing filesbut with less or more success... While I put [NSApp beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo: inside [[NSOperationQu

Re: NSTextField Tab Order.

2012-06-13 Thread Quincey Morris
On Jun 13, 2012, at 14:15 , Robert Tillyard wrote: > Window is created from a XIB using: > > - (id)initWithManagedObjectContext:(NSManagedObjectContext *)inMoc > { > if ((self = [super initWithWindowNibName:@"RunnersWindow" owner:self])) > [self setManagedObjectContext:inMoc]; > > retur

Re: NSTextField Tab Order.

2012-06-13 Thread Ken Thomases
Hi, On Jun 13, 2012, at 4:15 PM, Robert Tillyard wrote: > Thank you for your reply. You're welcome. > Window is created from a XIB using: > > - (id)initWithManagedObjectContext:(NSManagedObjectContext *)inMoc > { >if ((self = [super initWithWindowNibName:@"RunnersWindow" owner:self])) >

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 initWithWindowNibName:@"RunnersWindow" owner:self])

Re: NSTextField Tab Order.

2012-06-13 Thread Ken Thomases
On Jun 13, 2012, at 4:50 PM, Quincey Morris wrote: > The other difficulty you're running into is that by design the window is not > created immediately when you create a window controller. (You say of your > code, above, that it creates a window from a XIB. It doesn't. It only creates > a windo

[OT] Finite vs Infinite State Machines?

2012-06-13 Thread Dave
Hi, I'm interested how people will comment on this. A Finite State Machine Implementation would look something like this: -(void) nextState { lastState = currentState; currentState = nextState; switch (currentState) { // Do Something to make nextState ge

Re: Sandoxing: Creating a security-scoped bookmark for contents of a user-specified directory.

2012-06-13 Thread Mike Abdullah
Is your app codesigned? Security-scoped bookmarks require it to be codesigned. On 13 Jun 2012, at 12:14, douglas welton wrote: > Hi All, > > My application allows the user to navigate to a directory and read a > collection of image files. Once read, the user can arbitrarily keep any > subset o

Re: NSTextField Tab Order.

2012-06-13 Thread Dennis
On Jun 13, 2012, at 2:15 PM, Robert Tillyard wrote: > I'd still like to fix my window == NULL problem as I would like to make the > enter key move to the next field and skip fields if some earlier information > means that future fields are not required. Is there any chance you could be shadowin

Re: Nil and nil Macro Conflict

2012-06-13 Thread William Squires
1) When in doubt, use C4! (actually, plain old dynamite should work just fine!) 2) Shoot the (idiot) developer of the C++ code for doing that (may result in serious jail time...) 3) Fuggedabouddit! 4) Wait for ObjC 3.0 and hope it has a feature to isolate badly written (or named) code in a namesp

Re: Sandoxing: Creating a security-scoped bookmark for contents of a user-specified directory. (resolved)

2012-06-13 Thread douglas welton
Mike, The app is codesigned. I have resolved the problem. I had fat-fingered the name of the entitlement when modifying my entitlement file. It's amazing how things actually work when you enter the correct information :^) later, douglas On Jun 13, 2012, at 6:29 PM, Mike Abdullah wrote: >

Re: [OT] Finite vs Infinite State Machines?

2012-06-13 Thread Graham Cox
On 14/06/2012, at 8:03 AM, Dave wrote: > In assembler this would be implemented is using an "Exchange Instruction" to > alter the PC on the stack and cause it to return to the correct place once > the ASync Task (usually an interrupt) had finished. Ah, those were the days - push a calculated