Re: "Nested" runloops

2011-07-22 Thread Eric Matecki
Ken Thomases wrote: On Jul 20, 2011, at 8:01 AM, Eric Matecki wrote: I have to port a software to take advantage of 64 bits adressing. The software was originally written for Windows... So there isn't any real runloop, but there are GetMsg() function calls spread all around the source code (in

Re: Timing some code execution outside Instruments

2011-07-22 Thread Andreas Grosam
On Jul 21, 2011, at 7:59 PM, Eric E. Dolecki wrote: > I'm curious if there is a way to NSLog how long some code takes to execute > (outside of using Instruments). > > In Flash one can use getTimer and see how much time passed inline. Is there > a way to do this in Obj-C? > > Would one use a NSD

NSView trackingAreas and fast enumeration mutation

2011-07-22 Thread Gideon King
Hi All, I'm not sure how to track down this issue. A few users of my application have reported the following crash. 0 CoreFoundation 0x7fff8045e7b4 __exceptionPreprocess + 180 1 libobjc.A.dylib 0x7fff8354cf03 objc_exception_throw + 45 2 CoreFoundation 0x7fff804b65bf __NSFastEnumeratio

NSDecimalNumber converted to NSNumber

2011-07-22 Thread Ferhat Ayaz
Hi, When I use distributed objects in Lion all NSDecimalNumbers are decoded as NSNumbers. Any thoughts? Thanks, Ferhat ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Core Data dog-slow when using first time after boot

2011-07-22 Thread Tito Ciuro
Hello all, I saw an interesting reply from Dr. Hipp posted today: http://www.mail-archive.com/sqlite-users@sqlite.org/msg62618.html This seems to explain why SQLite (and Core Data) might sometimes launch and execute very slowly. -- Tito On Sep 3, 2009, at 5:00 PM, Ben Trumbull wrote: > > On

NSDocument: Read-only types and autosavesInPlace

2011-07-22 Thread Daniel Vollmer
Hello, I'm trying to add autosavesInPlace support to my NSDocument-based Application. It supports a read-only type that is internally converted (as suggested in https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Documents/Tasks/FAQ.html#//apple_ref/doc/uid/2954-1081265-BA

Re: Determine architecture of a running application

2011-07-22 Thread David Duncan
On Jul 21, 2011, at 9:34 PM, danchik wrote: > Hello, how can one determine if the currently running app is 32bit or 64 > > Specifically: > > I have a 32 bit plugin compiled for 10.5+ and it needs to know if it was > loaded by 32bit or 64bit Safari What do you need to know this for? There is a

Re: NSDocument: Read-only types and autosavesInPlace

2011-07-22 Thread Kevin Perry
On Jul 22, 2011, at 9:16 AM, Daniel Vollmer wrote: > Hello, > > I'm trying to add autosavesInPlace support to my NSDocument-based > Application. It supports a read-only type that is internally converted (as > suggested in > https://developer.apple.com/library/mac/documentation/Cocoa/Conceptua

Re: NSDocument: Read-only types and autosavesInPlace

2011-07-22 Thread Daniel Vollmer
On 22 Jul 2011, at 19:25, Kevin Perry wrote: > > On Jul 22, 2011, at 9:16 AM, Daniel Vollmer wrote: > >> Hello, >> >> I'm trying to add autosavesInPlace support to my NSDocument-based >> Application. It supports a read-only type that is internally converted (as >> suggested in >> https://de

Re: Determine architecture of a running application

2011-07-22 Thread danchik
I have an existing 32bit plugin that works if loaded in the same process as Safari, but has problems when 64 bit Safari load it through the PluginHost in a different process, so I need to be able to determine what architecture of the safari is running and if it is 64 bit, it would start a new 32

Re: Determine architecture of a running application

2011-07-22 Thread danchik
what guarantee is there that pligin would be loaded of the same architecture and not proxied through the PluginHost? There might be another issue now, I think safari 5.1 (even when ran in 32bit) now loads the plugins in another process through com.apple.WebKit.PluginProcess instead of loading

Re: Determine architecture of a running application

2011-07-22 Thread Jens Alfke
On Jul 22, 2011, at 12:19 PM, danchik wrote: > There might be another issue now, I think safari 5.1 (even when ran in 32bit) > now loads the plugins in another process through > com.apple.WebKit.PluginProcess instead of loading them in the same process as > Safari as it used to before the 5.1

Lion doesn't like tricky.key.paths in bindings?

2011-07-22 Thread Jerry Krinock
In Interface Builder, I often set a binding like this: Bind to: FooController (an NSObjectController, instantiated in nib) Controller Key: selection (an instance of Foo) Model Key Path: barDate.someFormattingMethod where 'barDate' is an NSDate attribute of 'foo' and 'someFormattingMethod is, for

Core Data: I/O Error No Such Column

2011-07-22 Thread Nick Shore
I'm getting the following error in my application: CoreData: error: (1) I/O error for database at /Users/nick//blah.sqlite. SQLite error code:1, 'no such column: t1.Z_3RELATIONSHIP1 This error only occurs if I build the project in Xcode 4.1 on Lion. If I build the same project on Snow Leopard