Re: Getting a dotted font from a regular font

2012-10-01 Thread jonat...@mugginsoft.com
On 1 Oct 2012, at 01:35, Eric Gorr mail...@ericgorr.net wrote: An odd request I know, but I have a need to take a regular font and obtain a dotted version of it. Any clever ideas that would not involve loading the font into a font editor and turing it into a dotted font? To do this

App won't launch after a crash

2012-10-01 Thread Martin Hewitson
Dear all, I've received a report from a user saying that, after a crash, the app won't launch any more. The crash log looks like below. It looks to me like the app bundle has somehow got corrupted, but I've no idea what's going on really. The user has tried deleting preferences and app support

Re: App won't launch after a crash

2012-10-01 Thread Mike Abdullah
What's the exception? Should appear in the console log somewhere. On 1 Oct 2012, at 12:17, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Dear all, I've received a report from a user saying that, after a crash, the app won't launch any more. The crash log looks like below. It looks to

Re: App won't launch after a crash

2012-10-01 Thread Martin Hewitson
Oops, sorry, I chopped off the top of the report. Here it is: Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x, 0x Crashed Thread: 0 Dispatch queue: com.apple.main-thread Application Specific Information: abort() called *** Terminating app due to

Re: NSTextField not updated during large process

2012-10-01 Thread Koen van der Drift
On Sun, Sep 30, 2012 at 7:20 PM, Koen van der Drift koenvanderdr...@gmail.com wrote: On Sep 30, 2012, at 6:51 PM, Ken Thomases k...@codeweavers.com wrote: Move the long-running operation to a background thread (e.g. using -performSelectorInBackground:withObject:, or dispatch_async() to a

Re: App won't launch after a crash

2012-10-01 Thread Mike Abdullah
On 1 Oct 2012, at 13:13, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Oops, sorry, I chopped off the top of the report. Here it is: Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x, 0x Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Re: The joy of unexpected SIGABRTs

2012-10-01 Thread Alex Zavatone
On Sep 29, 2012, at 4:58 PM, Jens Alfke wrote: On Sep 28, 2012, at 9:00 PM, Alex Zavatone z...@mac.com wrote: I just spent 10 mins wiring up the GUI, did nothing else, and now when one scene appears, Xcode instantly SIGABRTs, without any information in the console or the debugger that

Re: App won't launch after a crash

2012-10-01 Thread Martin Hewitson
On Oct 1, 2012, at 10:20 AM, Mike Abdullah cocoa...@mikeabdullah.net wrote: On 1 Oct 2012, at 13:13, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Oops, sorry, I chopped off the top of the report. Here it is: Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x,

Did 10.7.5 break App Sandbox for anyone?

2012-10-01 Thread Sean McBride
Hi all, Since it's so half-baked, I only play with App Sandbox once in a while, but it seems 10.7.5 has a major regression. When built with com.apple.security.app-protection=true my app launches on 10.7.4 and 10.8.x, but crashes at launch on 10.7.5: Crashed Thread: 0 Dispatch queue:

Re: Compiling GC apps under OS X 10.8

2012-10-01 Thread Sean McBride
On Mon, 1 Oct 2012 10:52:26 +1000, Shane Stanley said: I have a GC app with a deployment version of 10.6. If I compile it in 4.5 under OS X 10.8, using either 10.8 or 10.7 SDK, and run the resulting app in OS X 10.6, I gets lots of this sort of error: objc[201]: GC: 0x10029cf20 + 24 isn't in the

Re: App won't launch after a crash

2012-10-01 Thread Jens Alfke
On Oct 1, 2012, at 9:11 AM, Martin Hewitson martin.hewit...@aei.mpg.de wrote: I can check, but as I say, it was working fine. It just stopped being able to launch after a crash. Is there a way that the XIB files can get corrupted when the app crashes? No. Files in the app bundle are never

Re: Did 10.7.5 break App Sandbox for anyone?

2012-10-01 Thread Kyle Sluder
On Mon, Oct 1, 2012, at 09:38 AM, Sean McBride wrote: Hi all, Since it's so half-baked, I only play with App Sandbox once in a while, but it seems 10.7.5 has a major regression. When built with com.apple.security.app-protection=true my app launches on 10.7.4 and 10.8.x, but crashes at

Re: The joy of unexpected SIGABRTs

2012-10-01 Thread Alex Zavatone
On Sep 29, 2012, at 4:58 PM, Jens Alfke wrote: On Sep 28, 2012, at 9:00 PM, Alex Zavatone z...@mac.com wrote: I just spent 10 mins wiring up the GUI, did nothing else, and now when one scene appears, Xcode instantly SIGABRTs, without any information in the console or the debugger that

Re: Did 10.7.5 break App Sandbox for anyone?

2012-10-01 Thread Sean McBride
On Mon, 1 Oct 2012 11:05:21 -0700, Kyle Sluder said: Anyone else seeing this? Yes, a lot of people: https://devforums.apple.com/message/732771 That seems paywalled. :( Which I guess explains why googling found nothing... Anyway, at least I'm not alone. I'll let it sort itself out

Re: App won't launch after a crash

2012-10-01 Thread Ken Thomases
On Oct 1, 2012, at 11:11 AM, Martin Hewitson wrote: Is there a way that the XIB files can get corrupted when the app crashes? An app can do anything that the kernel permits it to. A crash is, pretty much by definition, a sign that the app is going wild. It's confused. It's doing stuff it

Re: The joy of unexpected SIGABRTs

2012-10-01 Thread Alex Zavatone
Hmm. At least, in Xcode 4.2, I can confirm that adding a break on all exceptions either on throw on on catch does nothing to provide any informative information on just what is causing the exception to happen. Console output: Catchpoint 3 (catch)Pending breakpoint 1 - __cxa_begin_catch

Re: App won't launch after a crash

2012-10-01 Thread Kyle Sluder
On Mon, Oct 1, 2012, at 07:20 AM, Mike Abdullah wrote: On 1 Oct 2012, at 13:13, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Oops, sorry, I chopped off the top of the report. Here it is: Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x,

Re: Crash when loading NSViewController view with NSArrayController [solved]

2012-10-01 Thread Lee Ann Rucker
On Sep 30, 2012, at 11:38 AM, Kyle Sluder wrote: On Sun, Sep 30, 2012, at 10:57 AM, Lee Ann Rucker wrote: Weird that you didn't get the warning, but we've switched to the pattern of [self addObserver:self forKeyPath:@ctrl.selectedObjects.someString... and that's saved countless

FS item in trash

2012-10-01 Thread tridiak
Is there an API (carbon or cocoa) to determine if an item is in the trash? NSFileManager, NSFileHandle and carbon Files.h do not have anything. Or do I just do a path search looking for .trash? TIA Mark ___ Cocoa-dev mailing list

Re: The joy of unexpected SIGABRTs

2012-10-01 Thread Jens Alfke
On Oct 1, 2012, at 11:59 AM, Alex Zavatone z...@mac.com wrote: It's just stopped in Main, in the return statement below: return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); Thread 1: Stopped at breakpoint 1. I don't know if you can get anything

Re: App won't launch after a crash

2012-10-01 Thread Martin Hewitson
On Oct 1, 2012, at 03:08 PM, Kyle Sluder k...@ksluder.com wrote: On Mon, Oct 1, 2012, at 07:20 AM, Mike Abdullah wrote: On 1 Oct 2012, at 13:13, Martin Hewitson martin.hewit...@aei.mpg.de wrote: Oops, sorry, I chopped off the top of the report. Here it is: Exception Type: EXC_CRASH

Re: FS item in trash

2012-10-01 Thread Ken Thomases
On Oct 1, 2012, at 2:49 PM, tridiak wrote: Is there an API (carbon or cocoa) to determine if an item is in the trash? NSFileManager, NSFileHandle and carbon Files.h do not have anything. err = FSDetermineIfRefIsEnclosedByFolder (kOnAppropriateDisk, kTrashFolderType, ref, result); (That's an

Re: The joy of unexpected SIGABRTs

2012-10-01 Thread Alex Zavatone
Well, that makes a huge amount of difference showing what has been called under 4.2. Sent from my iPad On Oct 1, 2012, at 3:50 PM, Jens Alfke j...@mooseyard.com wrote: On Oct 1, 2012, at 11:59 AM, Alex Zavatone z...@mac.com wrote: It's just stopped in Main, in the return statement

Re: NSTextField not updated during large process

2012-10-01 Thread Koen van der Drift
On Oct 1, 2012, at 8:59 AM, Koen van der Drift koenvanderdr...@gmail.com wrote: Ok, I decided to use NSOperation(Queue) as it is generally recommended over performSelectorXXX to be a more modern API, and have been reading a bit about it. In Hillegass' Cocoa book, he uses processQueue

Re: FS item in trash

2012-10-01 Thread Charles Srstka
On Oct 1, 2012, at 3:29 PM, Ken Thomases k...@codeweavers.com wrote: On Oct 1, 2012, at 2:49 PM, tridiak wrote: Is there an API (carbon or cocoa) to determine if an item is in the trash? NSFileManager, NSFileHandle and carbon Files.h do not have anything. err =

Re: NSTextField not updated during large process

2012-10-01 Thread Koen van der Drift
On Oct 1, 2012, at 5:39 PM, Koen van der Drift koenvanderdr...@gmail.com wrote: [myQueue addOperationWithBlock:^(void) { [self parseData]; // calculate the new data and update the model }]; // now tell everyone we're done [self finishedTask]; //

Re: NSTextField not updated during large process

2012-10-01 Thread Mike Abdullah
On 1 Oct 2012, at 22:39, Koen van der Drift koenvanderdr...@gmail.com wrote: On Oct 1, 2012, at 8:59 AM, Koen van der Drift koenvanderdr...@gmail.com wrote: Ok, I decided to use NSOperation(Queue) as it is generally recommended over performSelectorXXX to be a more modern API, and have

Re: NSTextField not updated during large process

2012-10-01 Thread Koen van der Drift
On Oct 1, 2012, at 6:31 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: Yes, you don't understand the consequences of your code yet. AppKit is not threadsafe. You absolutely MUST only update UI on the main thread for something like this. Make sure your -parseData routine is

Re: FS item in trash

2012-10-01 Thread tridiak
On 2/10/2012, at 10:44 AM, Charles Srstka wrote: On Oct 1, 2012, at 3:29 PM, Ken Thomases k...@codeweavers.com wrote: On Oct 1, 2012, at 2:49 PM, tridiak wrote: Is there an API (carbon or cocoa) to determine if an item is in the trash? NSFileManager, NSFileHandle and carbon Files.h do

Re: Compiling GC apps under OS X 10.8

2012-10-01 Thread Shane Stanley
On 02/10/2012, at 2:48 AM, Sean McBride s...@rogue-research.com wrote: I have a GC app with a deployment version of 10.6. If I compile it in 4.5 under OS X 10.8, using either 10.8 or 10.7 SDK, and run the resulting app in OS X 10.6, I gets lots of this sort of error: objc[201]: GC:

Re: FS item in trash

2012-10-01 Thread gweston
Is there an API (carbon or cocoa) to determine if an item is in the trash? NSFileManager, NSFileHandle and carbon Files.h do not have anything. Or do I just do a path search looking for .trash? You definitely do *not* do that. The name and location of the trash directory is an implementation

ArrayController cannot sort

2012-10-01 Thread Gerriet M. Denkmann
I have a TableView and an ArrayController (no DataSource) and everything works fine. Clicking on a column header sorts my table ascending or descending. But the order of the rows is totally wrong. It seems that the ArrayController uses compare: to sort my strings. The documentation rightly

Re: ArrayController cannot sort

2012-10-01 Thread Kyle Sluder
On Mon, Oct 1, 2012, at 07:56 PM, Gerriet M. Denkmann wrote: So: how do I instruct my ArrayController to use localizedCompare: ? -[NSTableColumn setSortDescriptorPrototype:]

Re: ArrayController cannot sort

2012-10-01 Thread Gerriet M. Denkmann
On 2 Oct 2012, at 11:10, Ken Thomases k...@codeweavers.com wrote: On Oct 1, 2012, at 10:20 PM, Kyle Sluder wrote: On Mon, Oct 1, 2012, at 07:56 PM, Gerriet M. Denkmann wrote: So: how do I instruct my ArrayController to use localizedCompare: ? -[NSTableColumn setSortDescriptorPrototype:]