Re: Error reporting in Cocoa (was Re: Exception not being caught)

2011-03-22 Thread A.M.
On Mar 21, 2011, at 10:24 PM, Chris Hanson wrote: > Ultimately, the solution will be to modify HessianKit -- or any other > framework that presents an RPC-style interface[1] -- to follow the Cocoa > convention of returning BOOL (or a non-nil/nil object reference) to indicate > success or failu

Re: Drawers on windows...

2010-11-30 Thread A.M.
On Nov 30, 2010, at 5:27 PM, Jean-Daniel Dupas wrote: > And for completeness of the answer, here is when Apple recommends to use > drawer: > > http://developer.apple.com/library/mac/#documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGWindows/XHIGWindows.html%23//apple_ref/doc/uid/200

Re: CFRunLoopRun() and processing posix signals

2010-11-23 Thread A.M.
On Nov 23, 2010, at 12:55 PM, Philippe Strauss wrote: > Hello Cocoa developpers, > > When using a CFRunLoopRun() event loop in a non-GUI daemon, what kind of > resource and handler do you need to add to the loop for beeing able to > process signals (unix signals) and not beeing stuck in: > >

Re: AM/PM letter UNICODE issues

2010-10-18 Thread A.M.
On Oct 18, 2010, at 2:41 PM, glenn andreas wrote: > > On Oct 18, 2010, at 12:19 PM, Alex Kac wrote: > >> I'm fairly certain my problem here is that I wasn't thinking about unicode >> terms here. >> >> What we are trying to do: >> Shorten the AM/PM to just the first character in Western Langu

Re: CGContextSelectFont spinlock

2010-09-16 Thread A.M.
On Sep 16, 2010, at 5:54 PM, Stevo Brock wrote: > Great suggestion. > > Here's the full list of backtraces from the iPad (3.2.2)... Spin lock is in > Thread 1 at the end... > > Thread 1 (thread 12035): > #0 0x33af18a4 in spin_lock () > #1 0x33af21aa in pthread_once () > #2 0x33d795a2 in CG

Re: Style question

2010-08-30 Thread A.M.
On Aug 30, 2010, at 11:29 AM, Vincent Habchi wrote: > Hi everybody, > > just an enquiry regarding coding style. What is considered best: > > baz = [[[Foo alloc] init] autorelease]; > … > return baz; > > or > > baz = [[Foo alloc] init]; > … > return [baz autorelease]; > > ? According to the

Re: Partially release NSMutableData

2010-08-05 Thread A.M.
On Aug 4, 2010, at 9:02 AM, Marcus Karlsson wrote: > Hello. > > The subject of this thread is probably somewhat weird at first but let me > explain. > > Let's say that I'm receiving data from the network and need to store it in a > buffer. I need to store it until enough data has been collect

Re: Terminating subtasks reliably

2010-03-30 Thread A.M.
On Mar 30, 2010, at 4:01 PM, McLaughlin, Michael P. wrote: > I have a Cocoa app (Leopard) which launches several Foundation Tool subtasks > (since threads are not sufficient in this case). Currently, I terminate > these subtasks via the app-delegate method > > -(NSApplicationTerminateReply)appl

AddressBook framework with remote contacts?

2010-03-18 Thread A.M.
Hello, We are interested in using the AddressBook framework (specifically, the people picker view) but we haven't found a way with the CocoaPeoplePicker code example to show remote contacts (via LDAP, Exchange, or CardDAV) under 10.6. Does the Address Book framework not support remote contacts?

ConvertCocoa64: spaces in filename problem

2010-01-11 Thread A.M.
On this page: http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/Cocoa64BitGuide/ConvertingExistingApp/ConvertingExistingApp.html#//apple_ref/doc/uid/TP40004247-CH5-SW5 Apple suggests using: /Developer/Extras/64BitConversion/ConvertCocoa64 `find . -name '*.[hm]' | xargs` Howe

Re: NSNotificationQueue & NSOperationQueue thread death

2009-05-06 Thread A.M.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On May 6, 2009, at 11:49 AM, Jonathon Kuo wrote: On May 4, 2009, at 8:12 PM, Ken Thomases wrote Re: 'A couple NSRunLoop questions': Every thread has exactly one run loop associated with it. You don't create run loops nor do you remove them.

Re: NSTimer & Runloop questions

2009-03-20 Thread A.M.
On Mar 20, 2009, at 12:22 PM, Robbie Hanson wrote: How can I know if a fired timer has already been "invalidated" using setFireDate? Consider the following pseudo-code: - (void)dequeueNextOperation { // IF there is another operation in the queue // Dequeue and start opertati

Re: NSLog fixes output, but why?

2009-03-18 Thread A.M.
On Mar 18, 2009, at 6:05 PM, James Maxwell wrote: I've got a really frustrating, and really silly problem. I have some fairly complex machine learning code I'm working on. I've noticed inconsistent output from a particular method. I'm doing some fairly nasty array and matrix stuff, which i

Re: Handling errors in -initWithCoder:

2009-03-13 Thread A.M.
On Mar 13, 2009, at 12:05 AM, Graham Cox wrote: Minor problem, I think, but I'd like to get some advice about the right way to approach this. One of my classes can sometimes fail in -initWithCoder: - it relies on certain resources being available and if it doesn't get them, I thought I c

Re: Time Zone Names

2009-03-11 Thread A.M.
On Mar 11, 2009, at 3:15 PM, Rick Mann wrote: According to the docs, acceptable time zone names include names like "US/Pacific". What are the other names that can be used? Central, Mountain, Atlantic? What's Hawaii's in this style? I can't find "US/*" names in the list supplied by [NSTimeZ

Re: Background Process?

2009-03-11 Thread A.M.
On Mar 11, 2009, at 2:42 AM, Ken Thomases wrote: All irrelevant, as there's no need for any signaling of any run loop input sources to allow timers to fire. And the best source is the source: http://www.opensource.apple.com/darwinsource/10.5.6/CF-476.17/CFRunLoop.c static void __CFRunLoopTi

Re: Archiving/unarchiving root objects using instance methods

2009-03-09 Thread A.M.
On Mar 9, 2009, at 3:59 PM, Paul Kim wrote: I have been using NSKeyedArchiver's +archivedDataWithRootObject: method to create archives. Now, I want to create and read the same archives but using a instances of NSKeyedArchiver and NSKeyedUnarchiver instead of the class methods (so I can do

-threadDictionary thread safety?

2009-02-06 Thread A.M.
Hello, Now that 10.5 allows one to maintain pointers to threads other than the current thread, is it legal to call -threadDictionary for the non- current thread? I ask because it is odd that Cocoa would allow access to address space that the standard pthread_key/specific API would not allo

Re: Serial IO seems to be starving UI

2009-01-30 Thread A.M.
On Jan 30, 2009, at 2:08 AM, Rick Mann wrote: Sorry for the cross-post, but I thought both these lists might have advice to offer. Please don't cross-post. Try one list, then the other. I just dusted off an app I'd worked on several months ago. It used to work fine (prior to 10.5.6), but

Re: how to archive NSNetService?

2009-01-16 Thread A.M.
On Jan 16, 2009, at 5:00 PM, Allyn Bauer wrote: Hello all, I'm writing a fairly simple server <-> client app. The server publishes a network name using Bonjour and clients get a list of names. They choose one (for now). After this choice, I would like the selection to somehow be saved using NSU

Re: NSDistributedNotification names

2008-03-24 Thread A.M.
On Mar 24, 2008, at 10:57 AM, Jens Alfke wrote: Distributed notifications aren't the same thing as NSNotifications, even though Foundation tries to give them a similar API. Regular notifications aren't available to other processes; a notification has to be explicitly posted as distributed,

Re: POSIX thread in cocoa project

2008-02-23 Thread A.M.
On Feb 23, 2008, at 11:17 AM, Luca Ciciriello wrote: Hi All. I've added to a cocoa project a .cpp file. In this file I've implemented a multithreading system using POSIX. Now, from my cocoa app's window I can use the functionality of the new added cpp file (using a .mm file as interface

ObjC 2.0 Class +encodeWithCoder:

2008-02-21 Thread A.M.
I have a DO-based application which uses a Class object as a root proxy under 10.4- it works as expected. Objective-C 2.0 seems to have broken this option because Class no longer responds to - encodeWithCoder:. I am not able to think of a reason for this regression, but perhaps the new dyn