Re: problem bringing up print dialog for epson printer in 64-bit mode

2011-05-23 Thread Chris Kane
u have any control over CERPCFBundle or influence with the owners of that, find out why they are throwing NSErrors as exceptions. Chris Kane Cocoa Framework, Apple On May 21, 2011, at 12:34 PM, Ken Victor wrote: > nick, > thanx for the reply. > > here is a copy of the top portion of t

Re: NSNumberFormatter not working for me ?

2010-04-15 Thread Chris Kane
456-7890" You're trying to format a number object with NSNumberFormatter and get the formatter to put junk in the middle of the number [digit sequence]. NSNumberFormatter does not support formats putting junk in the middle of the number, except for a limited set involving the thousands sep

Re: Need -[NSTask waitUntilExitOrTimeout:] (was NSTask "Thread Unsafe"...)

2009-09-16 Thread Chris Kane
urprising to that stuff (breaking assumptions or requirements it has), and possibly surprising to your app (breaking assumptions or requirements it has). However in this case, the task death notification, if you need that, requires the default run loop mode to be run to ge

Re: Is a serial NSOperationQueue FIFO?

2009-09-16 Thread Chris Kane
s are just one thing that can affect readiness. If you are adding NSOperations to a given queue from multiple threads, keep in mind that it is very tricky (well, impossible) to accurately observe from the outside the actual order of events (ie, who got in first). Chris Kane Coc

Re: Grand Central Dispatch vs CFRunLoop

2009-09-16 Thread Chris Kane
get those notifications. That's a separate matter from NSTask, but people may confuse the two together so I mention it here. Chris Kane Cocoa Frameworks, Apple ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a

Re: system(root) locale

2009-08-31 Thread Chris Kane
[NSLocale systemLocale] returns the root NSLocale. If you are referring to the BSD/Unix-level locale, you can start by looking in /usr/include/xlocale.h, but I don't know anything else about that. Chris Kane Cocoa Frameworks, Apple On Aug 31, 2009, at 12:53 AM, Maggie Zhang wrote:

Re: Adding more and more key/value observers is much too slow - workaround needed.

2009-08-12 Thread Chris Kane
method, of course, you don't *need* to pass observer as the context because the observer is already "self". Chris Kane Cocoa Frameworks, Apple Passing NULL (just, for example) flattens the curve quite a bit. If you have nothing better to pass in, put this in your

Re: Autorelease Question

2008-11-20 Thread Chris Kane
omewhere. And if it's an important app, we often can't introduce the pool we wanted to due to binary compatibility, which means everybody loses if it would have improved typical app performance. Chris Kane Cocoa Frameworks, Apple ___ Coco

Re: Debugging NSDistributedNotificationCenter

2008-10-30 Thread Chris Kane
As of Leopard, you need to do this: sudo touch /var/log/do_dnserver_log sudo touch /var/log/dnserver.log sudo chown daemon /var/log/dnserver.log as the daemon can't create that file itself in that location any longer. But you can find the logs in the "system.log" in Console.ap

Re: -[_NSZombie methodSignatureForSelector:] not working

2008-10-30 Thread Chris Kane
0 zsh: illegal hardware instruction dead % % NSZombieEnabled=YES ./dead 2008-10-30 10:39:35.736 dead[12323:10b] *** -[NSObject self]: message sent to deallocated instance 0xc048b0 zsh: trace trap NSZombieEnabled=YES dead Chris Kane Cocoa Frameworks, Apple On Oct 30, 2008, at 10:03, Michae

Re: NSRunLoop run semantics

2008-09-09 Thread Chris Kane
eworks may install things in the main run loop, but it's possible with other threads as well. It boils down to: frameworks are clients of the run loops, just like the app itself. Chris Kane Cocoa Frameworks, Apple It would seem a little odd... since I would have assumed that only ap

Re: NSRunLoop run semantics

2008-09-08 Thread Chris Kane
u are intuiting exactly this when you mention "custom" and "hidden" input sources. Try the -run...BeforeDate: method in a conditional loop if you want block in the run loop most of the time, but want to bail under some conditions (which would then be the test of the loop).

Re: What to use observeValueForKeyPath: context

2008-08-29 Thread Chris Kane
oPropertyObservingContext; is this: static char ABCFooPropertyObservingContext; and then still using &ABCFooPropertyObservingContext as the context value. If nothing ends up being packed up tight right after that char, due to data alignment, well then you still haven't lost anything

Re: NSDateFormatter -dateFromString Question

2008-07-15 Thread Chris Kane
map approximately to one or more new methods or attributes, but you should use the new methods directly when possible. setDateStyle: and setTimeStyle: are also 10.4-only. The 10.0 - 10.3 formatter basically had about 3 or 4 methods, only. Chris Kane Cocoa Frameworks, Apple On Jul 15

Re: NSDateComponents question

2008-07-01 Thread Chris Kane
== 1 - (5 - 1) in your original computation) is passing an out-of-bounds value with dateWithComponents:, with who-knows-what effect. It might be well- defined, it might not be. The result might change between OS releases. In other words, it seems a bit ambiguous, so best to just avoid

Re: Garbage collector vs variable lifetime

2008-06-08 Thread Chris Kane
On Jun 7, 2008, at 6:59, Ricky Sharp wrote: I will hope though that within the context of say memcpy, that the GC thread could not collect data. For example, the following should be safe: memcpy(myLocalGCAwareBuffer, [data bytes], numberOfBytes); No. This is equivalent to: void *tmp0734