Send POST to browser

2009-09-14 Thread Bartosz Białecki
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com

Re: coding NSNumber in NSArray?

2009-09-14 Thread Randall Meadows
On Sep 14, 2009, at 10:11 AM, jon wrote: I thought i had read that NSNumber knew how to code itself in an NSArray... is this not the case? or is this code below just set up all wrong? and what would the proper way be to set this up? bookMarkNode's coders are below, this object has the

Re: Printing with Snow Leopard

2009-09-14 Thread Raleigh Ledet
On Sep 12, 2009, at 6:18 AM, Gerriet M. Denkmann wrote: Can you please log a bug on bugreporter.apple.com if you believe it is a bug in the Apple framework. Please include an isolated test case, if possible (that will greatly speed up investigation into the issue, especially if it is a rec

coding NSNumber in NSArray?

2009-09-14 Thread jon
I thought i had read that NSNumber knew how to code itself in an NSArray... is this not the case? or is this code below just set up all wrong? and what would the proper way be to set this up? bookMarkNode's coders are below, this object has the one NSNumber, and two NSStrings wh

NSTask is "Thread Unsafe". What does that mean?

2009-09-14 Thread Jerry Krinock
According to the Threading Programming Guide [1], NSTask is listed under "Thread Unsafe Classes", which is explained as: "The following classes and functions are generally not thread-safe. In most cases, you can use these classes from any thread as long as you use them from only one thread

Re: Mac Mini or iMac for Cocoa Development?

2009-09-14 Thread Graham Cox
On 14/09/2009, at 11:29 PM, Gregory Weston wrote: Funny. To me that's actually an argument in the mini's favor. Or, more broadly, it's extremely important that you actually test, early, on something comparable to the low-end of your supported configs. And since for a lot of small developer

Re: Newbie question - core data

2009-09-14 Thread Stamenkovic Florijan
Darren, On Sep 14, 2009, at 09:11, Darren Wheatley wrote: Hi, I'm learning Cocoa / Objective-C. Right now I'm trying to build a simple Core Data application. I've built a helper app to read in CSV and populate an XML core data store. That works fine. I have seen lots of examples of bin

Re: Mac Mini or iMac for Cocoa Development?

2009-09-14 Thread Gregory Weston
Graham Cox wrote: I am leaning towards iMacs, because these computers will serve as ambassadors as well as development machines; I want to double-check that if we have to go to Mac Minis, say with 4 GB of RAM, we won't be waiting forever to compile a simple program. iMac will probably be a be

Newbie question - core data

2009-09-14 Thread Darren Wheatley
Hi, I'm learning Cocoa / Objective-C. Right now I'm trying to build a simple Core Data application. I've built a helper app to read in CSV and populate an XML core data store. That works fine. I have seen lots of examples of binding a view to core data entities so that the contents of t

Re: Mac Mini or iMac for Cocoa Development?

2009-09-14 Thread Jonathan Hendry
On Sep 13, 2009, at 19:28 PM, Paul Bruneau wrote: The iMac is so much prettier plus can drive a second display. Refurb store = $999 or even sometimes $849 ones show up. The Mini can drive additional displays if you connect them through USB video adapters. They work quite well, although the

How to observe every child entity

2009-09-14 Thread Matthew Lindfield Seager
I have a transient calculatedBalance property in my Account entity that is currently implemented as a read-only property returning: [self valueForKeyPath:@"transactio...@sum.amount"] This appears to work but I'd like observers of this property to be notified every time a transaction is added, modi

Re: NSTask launcing executable inside a bundle

2009-09-14 Thread Tom
Thanks. It works now. After tripple-checking I found the culprit - the good'ol'typo classic mistake... The error message was leading me to a different direction, so I didn't immediately found the error. Perhaps "path not found" instead of "path not accessible" would be better? Something to remember

Re: NSTask launcing executable inside a bundle

2009-09-14 Thread Dave Keck
> using NSTask, or something else? Woops, missed your subject line; NSTask, got it. But yes, I would see if you're able to read the executable as plain data, using NSData's dataWithContentsOfFile: to make sure the path is in fact accessible. ___ Cocoa-d

Re: NSTask launcing executable inside a bundle

2009-09-14 Thread Dave Keck
The current recommendation is to store helper executables in the MacOS directory, rather than the Resources directory of your main bundle. That said, I'm unaware of any enforcement of this that would actually prevent you from executing it. How are you sure that the path is correct? Are you able to

NSTask launcing executable inside a bundle

2009-09-14 Thread Tomaž & Katja
I'm trying to run an executable from within an .app bundle's Contents/Resources folder (the executable is a standard command line utility) and I end up with "path not accessible" error. If I copy the executable outside the bundle, it works. I can launch the executable from terminal as expected. I a

Re: Core Data Manual Migration

2009-09-14 Thread Yvan BARTHÉLEMY
After further research I determined that this problem occured because I didn't set the source type and destination type. I will fill a bug report about the message not containing enough information (by the way, I'm running 10.5.6 as this is my target platform, this might have been solved since that

Re: Adding an associated reference is memory expensive (was: Adding an observer is memory expensive)

2009-09-14 Thread Torsten Radtke
Hi Ken and Greg This is a bug in the associated reference machinery. That code keeps a C++ std::hash_map per augmented object, mapping associated keys to associated values. std::hash_map uses an std::vector internally, and the default hash_map constructor pre-allocates 100 entries for that

Re: Developing a Stand-Alone Service in Snow Leopard

2009-09-14 Thread Steve Cronin
Folks To clarify my initial problem statement: If I recompile and then issue a "pbs" and then invoke the service it continues to execute an earlier instance of the service -- NOT the freshly compiled instance…. This is easy to prove A set of followup questions on STAND-ALONE services 1) Ho

Re: testing ppc on intel

2009-09-14 Thread Greg Guerin
Chris Idou wrote: Every program that I build universal but run on intel (OS 10.5) with "arch -ppc" option, crashes with a report like the following, and I've tested quite a few, even simple ones. How simple is simple? Hello world, or simpler? What about programs you didn't write, such as

Re: Mac Mini or iMac for Cocoa Development?

2009-09-14 Thread Kyle Sluder
On Sep 14, 2009, at 12:08 AM, Rob Keniger wrote: Except when nice new compilers come out. Switching to the Clang-LLVM compiler in Snow Leopard has cut my compile times pretty much in half. I highly recommend trying it out. Wish I could give it the same ringing endorsement, but we have bugs

Re: Mac Mini or iMac for Cocoa Development?

2009-09-14 Thread Rob Keniger
On 14/09/2009, at 1:48 PM, Graham Cox wrote: Compile time wise, don't worry about it. While compilation seems to have actually got slower over the years Except when nice new compilers come out. Switching to the Clang-LLVM compiler in Snow Leopard has cut my compile times pretty much in ha

Artur Zaiat/MOL/CEECIS/UNICEF is out of the office.

2009-09-14 Thread Artur Zaiat
I will be out of the office starting 09/11/2009 and will not return until 11/16/2009. I am in short term assignment in Geneva office from 12.04 – 11.05.2009 Oleg Panta will replace me during my absence. I can be reached anytime via my cell phone +37369148707__

Re: Circular references

2009-09-14 Thread DKJ
For the archives: Joar's suggestion did the trick. Now it's all working just the way I want. Thanks to all those who thought about it. dkj On 2009-09-13, at 15:08 , Joar Wingfors wrote: Foo.h == @class Bar; // <- Forward declaration of the Bar class @interface Foo : NSObject {

<    1   2