Re: NSController controllerEditor:didCommit :… exception

2010-11-14 Thread Kyle Sluder
On Sun, Nov 14, 2010 at 11:10 PM, vincent habchi wrote: > > Quincey, Kyle: > > >> While it is true the MOC is not initialized at this point, I don't see > >> what could cause this message appear at such an early stage. Can it be > >> linked somehow with the initialization of a static object embe

Re: NSController controllerEditor:didCommit :… exception

2010-11-14 Thread vincent habchi
Quincey, Kyle: >> While it is true the MOC is not initialized at this point, I don't see what >> could cause this message appear at such an early stage. Can it be linked >> somehow with the initialization of a static object embedded in the >> "MainMenu" NIB? > > If, as it happens, your MainMen

Re: Is App in Resources App Bundle Evil?

2010-11-14 Thread Kyle Sluder
On Sun, Nov 14, 2010 at 9:55 AM, kalexm wrote: > Hello all, > > I'm new to the list and somewhat new to OSX (not iphone!) development. I > spent ten years most of my time in java so it was a hurdle.. > > I am currently developing an app (APP-A) which does PDF manipulation. I > have a second app (

Re: libsvn_client for IOS

2010-11-14 Thread Kyle Sluder
On Sun, Nov 14, 2010 at 11:51 AM, James West wrote: > I'd like to add support for svn to my ios project, but I notice that > libsvn_client is not available for ios through Frameworks > Add > Existing > Framework. > > My question is two-fold: 1) Is there a method by which I can link against > libs

Is App in Resources App Bundle Evil?

2010-11-14 Thread kalexm
Hello all, I'm new to the list and somewhat new to OSX (not iphone!) development. I spent ten years most of my time in java so it was a hurdle.. I am currently developing an app (APP-A) which does PDF manipulation. I have a second app (APP-B), that provides a PDF Viewer which is older. APP-A de

libsvn_client for IOS

2010-11-14 Thread James West
I'd like to add support for svn to my ios project, but I notice that libsvn_client is not available for ios through Frameworks > Add > Existing Framework. My question is two-fold: 1) Is there a method by which I can link against libsvn_client in an ios application and 2) If not, are there any issu

Re: Maths package for 128/256 bit integers?

2010-11-14 Thread Dave DeLong
I wrote some wrappers around the OpenSSL bignum library, available here: https://github.com/davedelong/CHMath Cheers, Dave DeLong On Nov 14, 2010, at 4:14 PM, William Squires wrote: > I know some crypto algorithms use 128 or up to 256 bit keys - I'm hoping that > means there's a maths package

Re: Maths package for 128/256 bit integers?

2010-11-14 Thread Dave Carrigan
Your best bet is probably Gnu MP. It can do whatever precision you want and has a fairly large community of developers. I'm sure there are Objective-C wrappers available for it as well. On Nov 14, 2010, at 3:14 PM, William Squires wrote: > I know some crypto algorithms use 128 or up to 256 bit

Maths package for 128/256 bit integers?

2010-11-14 Thread William Squires
I know some crypto algorithms use 128 or up to 256 bit keys - I'm hoping that means there's a maths package (in C or ObjC) that'll provide for computations (addition, subtraction, multiplication, division, and modulus, at least...) and a way to convert them to<- >from NSStrings. Anyone know

unit test exit's abnormally with code 5

2010-11-14 Thread Shane
I'm trying to put a unit test together, so I've created a new target, added my files to compile and frameworks to link to, then commented out all of my code to where I have an empty setUp, tearDown, and testFunc, but still getting the following error. /Developer/Tools/RunPlatformUnitTests.include:

Re: System resources and number of operations on an NSOperationQueue

2010-11-14 Thread James Bucanek
Antonio Nunes wrote (Sunday, November 14, 2010 11:18 AM -): The sweet spot may of course differ on different machines and systems, so that is where setMaxConcurrentOperationCount comes in handy. Not only will it vary from machine to machine, but it's goin

Re: System resources and number of operations on an NSOperationQueue

2010-11-14 Thread Ken Thomases
On Nov 14, 2010, at 12:39 PM, Antonio Nunes wrote: > On 14 Nov 2010, at 16:25, Ken Thomases wrote: > >> -[NSProcessInfo activeProcessorCount] > > I see there is also processorCount. The docs totally don't explain what the > difference is. Is an active processor one that is available for process

Re: NSController controllerEditor:didCommit :… exception

2010-11-14 Thread Quincey Morris
On Nov 14, 2010, at 03:32, vincent habchi wrote: > While it is true the MOC is not initialized at this point, I don't see what > could cause this message appear at such an early stage. Can it be linked > somehow with the initialization of a static object embedded in the "MainMenu" > NIB? If, a

Re: System resources and number of operations on an NSOperationQueue

2010-11-14 Thread Antonio Nunes
On 14 Nov 2010, at 16:25, Ken Thomases wrote: > The system can't predict the future. When an operation is pending in a > queue, there's no way for the system to know if it's going to be CPU > intensive, memory intensive, and/or I/O intensive. > > Let's suppose the system primarily governs its

Re: System resources and number of operations on an NSOperationQueue

2010-11-14 Thread Antonio Nunes
On 14 Nov 2010, at 16:16, James Bucanek wrote: > NSOperationQueue uses Grand Central Dispatch, which will attempt to > load-balance the number of running operations based on _CPU_ resources. > However, that doesn't mean GCD will (or even can) automatically find the most > efficient run schedule

Re: NSController controllerEditor:didCommit: … exception

2010-11-14 Thread Kyle Sluder
On Nov 14, 2010, at 3:32 AM, vincent habchi wrote: > Hi everybody, > > this is a minor annoyance but I'm still puzzled about it. > > When I launch my application, after -applicationWillFinishLaunching: > completes, I get an exception started by -[NSController > controllerEditor:didCommit:cont

Re: More stoopid questions...

2010-11-14 Thread Bill Cheeseman
On Nov 14, 2010, at 10:40 AM, Matt Neuburg wrote: > We all did all those steps manually for years and years, on every single > application we wrote. Finally Apple realized they could save us some steps > and wrote it into the template. Since the purpose of the provided instance is > to functio

Re: System resources and number of operations on an NSOperationQueue

2010-11-14 Thread Ken Thomases
On Nov 14, 2010, at 3:58 AM, Antonio Nunes wrote: > I'm developing a daemon to run tasks as files get dropped into a folder. When > a new file is detected, a new operation gets put onto the daemon's operation > queue. The operation launches a task and waits for it to finish, then the > operatio

Re: Three more questions

2010-11-14 Thread Dave DeLong
Broken link, sorry. Use: http://regexkit.sourceforge.net/ Dave On Nov 14, 2010, at 9:15 AM, Dave DeLong wrote: > 1. Use NSNumberFormatter > 2. Attach an NSNumberFormatter to the field > 3. Sounds like a great use of regular expressions. Check out > http://regexkit.com > > Cheers, > > Dav

Re: System resources and number of operations on an NSOperationQueue

2010-11-14 Thread James Bucanek
Antonio Nunes wrote (Sunday, November 14, 2010 2:58 AM -): The issue I am seeing is that the operation queue appears to indiscriminately run operations as they are added to the queue, regardless of system resources, thus bringing the whole system to a crawl

Re: Three more questions

2010-11-14 Thread Dave DeLong
1. Use NSNumberFormatter 2. Attach an NSNumberFormatter to the field 3. Sounds like a great use of regular expressions. Check out http://regexkit.com Cheers, Dave On Nov 14, 2010, at 9:12 AM, William Squires wrote: > 1) What's the best way to get an NSUInteger from an NSString that has a

Three more questions

2010-11-14 Thread William Squires
1) What's the best way to get an NSUInteger from an NSString that has a string representation of a valid unsigned 32 bit integer (0..4,294,967,295). There's an [NSString integerValue] and an [NSString longLongValue] (int64 anyone?), but not convenience methods on NSString that return an uns

Re: More stoopid questions...

2010-11-14 Thread Matt Neuburg
On Sat, 13 Nov 2010 19:35:45 -0600, William Squires said: >1) Why is it, when you create a new Cocoa Application (or even some >iOS Applications) in Xcode, does it generate AppDelegate >(.h and .m) files, instead of calling them Controller (.h >and .m)? It's for your convenience. It used t

Re: NSUInteger = unsigned int?

2010-11-14 Thread Scott Ribe
On Nov 14, 2010, at 8:33 AM, William Squires wrote: > In the "String Programming Guide" under "String Format Specifiers", it says > "%u or %U" for unsigned 32 bit integers. Is this what NSUInteger is typedef'd > to? Or do I need "%qu" instead? NSUInteger is 32-bit for 32-bit architecture, 64-bi

Re: NSUInteger = unsigned int?

2010-11-14 Thread Dave DeLong
Further down in the document (In the "Platform Dependencies" section), it says you should use %ld or %lx for NSInteger and cast it to a long, and %lu or %lx for an NSUInteger and cast it to an unsigned long. NSUInteger is typedef'd to either an unsigned int or an unsigned long, depending on you

NSUInteger = unsigned int?

2010-11-14 Thread William Squires
In the "String Programming Guide" under "String Format Specifiers", it says "%u or %U" for unsigned 32 bit integers. Is this what NSUInteger is typedef'd to? Or do I need "%qu" instead? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Catching errors with MPMoviePlayerController

2010-11-14 Thread Matt Neuburg
On Tue, 9 Nov 2010 08:12:54 +1100, Rogerio de Paula Assis said: >Hi guys, > >Is there a way of catching exceptions (particularly for network errors >/ no connection available) when using a MPMoviePlayerController? I think the movie will finish and you can examine for MPMovieFinishReasonPlayback

Re: Default keyword selector type

2010-11-14 Thread Andreas Mayer
Am 13.11.2010 um 14:50 schrieb Michael Hall: > Your links busted, The link is fine. Andreas ___ 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

NSController controllerEditor:didCommit:… exception

2010-11-14 Thread vincent habchi
Hi everybody, this is a minor annoyance but I'm still puzzled about it. When I launch my application, after -applicationWillFinishLaunching: completes, I get an exception started by -[NSController controllerEditor:didCommit:contextInfo:]. I cannot get a decent traceback to pinpoint what object

System resources and number of operations on an NSOperationQueue

2010-11-14 Thread Antonio Nunes
I'm developing a daemon to run tasks as files get dropped into a folder. When a new file is detected, a new operation gets put onto the daemon's operation queue. The operation launches a task and waits for it to finish, then the operation exits. The issue I am seeing is that the operation queue