Re: App modal window and secondary thread

2010-03-20 Thread Chris Hanson
On Mar 20, 2010, at 4:24 AM, Philippe Sismondi wrote: Had I not been compelled to support OS X 10.4 I would have re- written the whole thing to use something better than threads - GCD or NSOperationQueue capabilities are said to be safer, although I have not yet learned them. Let's nip

Re: Test for debug vs release

2010-03-20 Thread Jerry Krinock
On 2010 Mar 20, at 22:27, Gideon King wrote: > Go to your project Info panel, and make sure the debug configuration is > chosen. In the Language section add -DISDEBUGGING to the Other C Flags Yes; note that the leading -D is part of the syntax. I believe that DEBUG is somewhat conventional, i

Re: Test for debug vs release

2010-03-20 Thread Gideon King
Go to your project Info panel, and make sure the debug configuration is chosen. In the Language section add -DISDEBUGGING to the Other C Flags Then you will be able to use #ifdef ISDEBUGGING etc in your code. HTH Gideon On 21/03/2010, at 3:22 PM, BareFeet wrote: > Hi all, > > OK, I'm missi

Test for debug vs release

2010-03-20 Thread BareFeet
Hi all, OK, I'm missing something obvious here. How can I test whether my program is running in debug or release? I'd like to wrap a bunch of log file writes in an if statement so it only bothers if I'm debugging? How can I detect debug at compile time? (eg #if ISDEBUGGING) How can I detect a

Re: about 3D sound

2010-03-20 Thread Jens Alfke
On Mar 20, 2010, at 12:32 PM, Jonathan Chacón wrote: > I'm searching some documentation about 3D sound to play sounds at left, > right, etc channel and modify the frequency of the sound but I don't find > anything in NSSound. NSSound is a bare minimum API; it’s basically for playing alerts. If

Re: Core Data: fetching a subset of attributes/columns

2010-03-20 Thread Hank Heijink (Mailinglists)
On Mar 20, 2010, at 1:52 PM, Gabriel Fernandez wrote: > I wanted to get a subset of an entity's attributes because one of the > ManagedObject's attributes is a large image. You might consider another design: one that defines two entities, such that the image attribute of your object is replace

Re: CoreData database sharing and migration

2010-03-20 Thread Ben Trumbull
I'm not sure I understand your question. "How" is they just use Core Data with our SQLite NSPersistentStore and it works for multiple processes on a single machine. For most but not all customers, that's coordinated with POSIX byte range advisory locks (fcntl). "Why" is to have Cocoa framewor

CoreImage on threads?

2010-03-20 Thread mlist0...@gmail.com
I'm trying to use run multiple CoreImage operations concurrently using NSOperation. Sometimes it works, sometimes it doesn't. Smells like what you'd get when trying to run multiple operations that are not thread safe. Before I dig in much deeper, am I wrong that running multiple concurrent Core

Re: Core Data: fetching a subset of attributes/columns

2010-03-20 Thread Fritz Anderson
On 20 Mar 2010, at 12:52 PM, Gabriel Fernandez wrote: > 2) using the -setPropertiesToFetch: method of NSFetchRequest, with the "id" > NSAttributeDescription I'm looking for as the only object in the properties > array. But when I use the -(NSArray*) properties method of the fetched > objects, t

Re: about 3D sound

2010-03-20 Thread Nick Zitzmann
On Mar 20, 2010, at 1:32 PM, Jonathan Chacón wrote: > I'm searching some documentation about 3D sound to play sounds at left, > right, etc channel and modify the frequency of the sound but I don't find > anything in NSSound. > > how can I control pane, channel, tone and volume of a sound? Use

about 3D sound

2010-03-20 Thread Jonathan Chacón
Hello, I'm searching some documentation about 3D sound to play sounds at left, right, etc channel and modify the frequency of the sound but I don't find anything in NSSound. how can I control pane, channel, tone and volume of a sound? I'm searching this info for Mac and iPhone. thank

Re: Using Set/Array KVC operators

2010-03-20 Thread Sam Krishna
Hi Ken, Thanks for your lengthy response to my question. I suspected that was the case, but I wanted to see if the Community knew something I didn't. Thank you for confirming my understanding of the KVC Set/Array operators. On Mar 19, 2010, at 4:22 AM, Ken Thomases wrote: > Those operators don

Core Data: fetching a subset of attributes/columns

2010-03-20 Thread Gabriel Fernandez
I wanted to get a subset of an entity's attributes because one of the ManagedObject's attributes is a large image. I've tried 1) creating a blank Managed Object Model and adding only the attributes I want, but of course the PSC says that the MOM that was used to create the store is different,

Re: NSUserDefaultsController valueForUndefinedKey:

2010-03-20 Thread Quincey Morris
On Mar 19, 2010, at 21:04, Richard Somers wrote: > When moving a slider in a preference panel I sometimes get an error. > > 2010-03-19 01:46:49.860 MyApp[4249:10b] Error setting value for key path > values.ABRadius of object [applies > immediately: YES] (from bound object with object ID 59 >

Re: NSUserDefaultsController valueForUndefinedKey:

2010-03-20 Thread Richard Somers
On Mar 20, 2010, at 10:25 AM, Jim Correia wrote: You use the key “radius” in the code you’ve pasted below. True. I bind the "radius" property of the external class to the controller key path "values.ABRadius". You should always reassign self. self = [super init]; if (! self) return; I

Re: NSUserDefaultsController valueForUndefinedKey:

2010-03-20 Thread Keary Suska
On Mar 19, 2010, at 10:04 PM, Richard Somers wrote: > 2010-03-19 01:46:49.860 MyApp[4249:10b] Error setting value for key path > values.ABRadius of object [applies > immediately: YES] (from bound object with object ID 59 > in Nib named ABPreferencePanel.nib): [ > valueForUndefinedKey:]: this

Re: CoreData database sharing and migration

2010-03-20 Thread Tobias Jordan
Hi Ben, Does this mean I can't use any mapping models anymore since they only update from one data model to another one? What's the right class to do it manually? Thanks. - Tobias On Mar 17, 2010, at 11:35 PM, Ben Trumbull wrote: About the second question -- do you know how to solve the m

Re: App modal window and secondary thread

2010-03-20 Thread Philippe Sismondi
Thanks all. Those suggestions help. BTW, I inherited the code that does the offending "while" loop. It came from someone's previous attempt to solve exactly one problem: that the secondary thread might finish before the main thread's modal window was even up. I hope I have solved this by start

Save As core data question

2010-03-20 Thread Gideon King
During the course of the Save As operation, core data creates a temporary clone of my managed objects, which appears to be part of its normal way of doing things (I can replicate this in a test project), but in the case of my project it is creating *two* clones of all my objects. One has the met

Re: CoreData database sharing and migration

2010-03-20 Thread Aurélien Hugelé
Hi Ben, Can you be kind enough to explain how Apple frameworks do that ? (multiple processes, single machine, one SQLite database) I'm thinking of CalendarStore, AddressBook framework. Can you describe what is the general idea behind those Apple frameworks? Aurélien, Objective Decision Team