re: Processing data maintained with Core Data

2009-03-28 Thread Ben Trumbull
Brief background: I'm porting an audio generation system to Mac OS. The code for generating audio is in C and has run on a couple of other OSs. It's been reasonably straight forward to model the parameters for this system with Core Data, and I'm excited about getting CD to handle multiple Undo

NSSound needs a run loop cycle to repeat-play a sound?

2009-03-28 Thread Jerry Krinock
If I invoke NSSound to play the same sound more than once, without cycling through a run loop, it only plays the first time, and other times, fails silently. [1] If I cycle through a run loop, then it works fine. [2] The documentation states that NSSounds play in a separate thread and I

re: Core Data: is fetching safe during validateForInsert:/validateForUpdate?

2009-03-28 Thread Ben Trumbull
Is it OK to perform a fetch during validateForInsert:/ validateForUpdate:? I have a Core Data entity named 'Person' with an attribute named 'uniqueNumber'. I want to ensure that no two People have the same uniqueNumber. It's not a great idea during validateForDelete: It fine during

Is there any ordered list or balanced tree

2009-03-28 Thread an00na
I can not find any data structure in Cocoa that maintains sorting order of items gradually added in, using the pairwise comparison results, something like the canonical set in C++'s STL that is usually implemented as a balanced tree. Thanks in advance. Welcome to drink some Cocoa, play

Re: Is there any ordered list or balanced tree

2009-03-28 Thread Andrew Farmer
On 28 Mar 09, at 01:25, an0...@gmail.com wrote: I can not find any data structure in Cocoa that maintains sorting order of items gradually added in, using the pairwise comparison results, something like the canonical set in C++'s STL that is usually implemented as a balanced tree. Unlike

Re: Is there any ordered list or balanced tree

2009-03-28 Thread Uli Kusterer
On 28.03.2009, at 09:25, an0...@gmail.com wrote: I can not find any data structure in Cocoa that maintains sorting order of items gradually added in, using the pairwise comparison results, something like the canonical set in C++'s STL that is usually implemented as a balanced tree. See

Re: open URL in default browser

2009-03-28 Thread Mike Abdullah
There's nothing wrong with using Launch Services still. Jut because it's a C API, doesn't mean it's Carbon and bad. NSWorkspace is just an Obj-C wrapper round some of LaunchServices. On 27 Mar 2009, at 18:47, Nathaniel Cunningham wrote: Greetings, I'm new to Cocoa, and helping to port a

re: Core Data: is fetching safe during validateForInsert:/validateForUpdate?

2009-03-28 Thread jmunson
Namaste! This is off-list. You know, I just went through this with the validateKey: bit. I found that a side effect of fetching during that validateKey was the save all pending changes bug. I then tried the performSelector, which worked, however, then the validateKey was no longer

re: Core Data: is fetching safe during validateForInsert:/validateForUpdate?

2009-03-28 Thread jmunson
Guess that WASN'T off-list. Sorry for the noise! ___ 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

KVO Code Breaks Undo

2009-03-28 Thread Richard Somers
I have core data document based application with a custom opengl layer- hosting view. Everything works except when objects are added or removed from the managed object model the view is not redrawn. So I add the following to code to redraw the view but then automatic undo is broken. //

Finding the NSCollectionViewItem being represented from the view

2009-03-28 Thread David Hatch
I'm using an NSCollectionViewItem to represent a core data model in an NSCollectionView and need to find out wether or not the NSCollectionViewItem is selected through a view embedded in the view which is connected to the view outlet of the NSCollectionViewItem. I've tried connecting an

Re: Is there any ordered list or balanced tree

2009-03-28 Thread an00na
I don't care the naming style, I care about the functionalities. And it seems Cocoa is weak at supporting sorting-order-keeping data structures at the high level APIs. However, the reference is valuable. Thank you. On Mar 28, 2009, at 6:45 PM, Andrew Farmer wrote: On 28 Mar 09, at 01:25,

Re: KVO Code Breaks Undo

2009-03-28 Thread Ken Thomases
On Mar 28, 2009, at 7:33 AM, Richard Somers wrote: I have core data document based application with a custom opengl layer-hosting view. Everything works except when objects are added or removed from the managed object model the view is not redrawn. So I add the following to code to redraw

Re: Is there any ordered list or balanced tree

2009-03-28 Thread I. Savant
On Mar 28, 2009, at 9:15 AM, an0...@gmail.com wrote: I don't care the naming style Right, because that's utterly unimportant. -- I.S. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Is there any ordered list or balanced tree

2009-03-28 Thread Dave DeLong
A guy in our CocoaHeads group (Quinn Taylor, works at Apple), adopted the old abandoned DataStructures framework by Phillip Morelock and has given it new life. You can checkout the source from our SVN repository here: http://cocoaheads.byu.edu/code/CHDataStructures I must say, Quinn has

Re: Is there any ordered list or balanced tree

2009-03-28 Thread Ken Thomases
On Mar 28, 2009, at 3:25 AM, an0...@gmail.com wrote: I can not find any data structure in Cocoa that maintains sorting order of items gradually added in, using the pairwise comparison results, something like the canonical set in C++'s STL that is usually implemented as a balanced tree.

Re: KVO Code Breaks Undo

2009-03-28 Thread Tommy Nordgren
On Mar 28, 2009, at 1:33 PM, Richard Somers wrote: I have core data document based application with a custom opengl layer-hosting view. Everything works except when objects are added or removed from the managed object model the view is not redrawn. So I add the following to code to redraw

Resizing CAAnimation

2009-03-28 Thread Bridger Maxwell
Hey, I think I have figured out how to make stationary layers layout (stay centered in the superlayer) automatically when the superlayer resizes, using either autoresizeMask or the constraints, but I need to do the same for layers that are moving. I have a simple animation in which I set the

Clarification regarding viewDidAppear: and friends

2009-03-28 Thread WT
Hello, I'm a bit confused by the documentation regarding UIViewController's viewDidAppear:, viewDidDisappear:, viewWillAppear:, and viewWillDisappear:. Consider what the documentation says for viewDidAppear: === viewDidAppear: Sent to the controller after the view fully appears and

[SOLVED] Re: Can NSTrackingArea rects be nested?

2009-03-28 Thread Stuart Malin
On Mar 28, 2009, at 2:31 AM, Quincey Morris wrote: On Mar 27, 2009, at 15:48, Stuart Malin wrote: I have a view that contains an NSTextView. I place NSTrackingAreas on portions of the TextView's text. I attach a userInfo dictionary to each of the tracking areas with a variety of parameters.

MPMediaItem valueForKey broken?

2009-03-28 Thread Bryan Hansen
I'm trying to use the new MPMediaItem class in iPhone SDK 3.0 to obtain artist and album information. Every time I try to retrieve a value based on the key constants it crashes telling me that it is not key complaint for that key (ie title or artist etc) NSString *aTitle =

Re: MPMediaItem valueForKey broken?

2009-03-28 Thread Dave DeLong
https://devforums.apple.com/community/iphone/30beta Cheers, Dave On Mar 28, 2009, at 2:48 PM, Bryan Hansen wrote: I'm trying to use the new MPMediaItem class in iPhone SDK 3.0 to obtain artist and album information. Every time I try to retrieve a value based on the key constants it

Re: Clarification regarding viewDidAppear: and friends

2009-03-28 Thread Hank Heijink (Mailinglists)
1) If the default implementation does nothing, why must I invoke super when overriding this method? You're right, that's confusing. Could be several answers though: maybe super does nothing visible, but still something; or maybe super could start doing something in the future. It's better

Re: Clarification regarding viewDidAppear: and friends

2009-03-28 Thread WT
Hi Hank, thanks for your quick reply. On Mar 28, 2009, at 9:56 PM, Hank Heijink (Mailinglists) wrote: 1) If the default implementation does nothing, why must I invoke super when overriding this method? You're right, that's confusing. Could be several answers though: maybe super does

Import/Convert non-CoreData SQLite database to CoreData SQLite database

2009-03-28 Thread Greg Robertson
Is there an easy way to convert an existing SQLite database so it is compatible with CoreData? I would like to convert a non-CoreData SQLite database to a CoreData SQLite database and bundle it with my application. Do I have to build my own converter application to do this or is there already

Re: Import/Convert non-CoreData SQLite database to CoreData SQLite database

2009-03-28 Thread Andrew Merenbach
On Mar 28, 2009, at 2:52 PM, Greg Robertson wrote: Is there an easy way to convert an existing SQLite database so it is compatible with CoreData? I would like to convert a non-CoreData SQLite database to a CoreData SQLite database and bundle it with my application. Do I have to build my own

Safari Cookie whitelist plugin (Help)

2009-03-28 Thread Russell Gray
Hi all, I emailed the dev, and was given the sourcecode for SafariPlus, and are currently trying to update it for Leopard. I have very limited coding abilities, and was hoping it would be a lot easier I was hoping someone with some spare time, may be able to take a look at the

[Moderator] Re: MPMediaItem valueForKey broken?

2009-03-28 Thread Scott Anguish
the iPhone 3.0 SDK is under non-disclosure. You can't talk about it publicly, including this mailing list. The Apple Developer Forums (http://devforums.apple.com) provide an appropriate forum for discussing iPhone 3.0 SDK without violating your agreement. Scott [Moderator] On

Re: NSSound needs a run loop cycle to repeat-play a sound?

2009-03-28 Thread Michael Ash
On Sat, Mar 28, 2009 at 2:11 AM, Jerry Krinock je...@ieee.org wrote: If I invoke NSSound to play the same sound more than once, without cycling through a run loop, it only plays the first time, and other times, fails silently. [1] If I cycle through a run loop, then it works fine. [2] The

Re: XMLParser

2009-03-28 Thread Marcel Weiher
On Mar 23, 2009, at 19:53 , Development wrote: I'm using an an NSXMLParser to parse a document. some of the elements are as follows: element property=valueSome Thing/ element The problem is that I cannot seem to come up with the element's property. During the parse which callback is going

Re: XMLParser

2009-03-28 Thread Marcel Weiher
On Mar 23, 2009, at 20:13 , Dave Geering wrote: On Tue, Mar 24, 2009 at 1:53 PM, Development developm...@fornextsoft.com wrote: I'm using an an NSXMLParser to parse a document. some of the elements are as follows: element property=valueSome Thing/element The problem is that I cannot seem to

Spotlight and Leopard

2009-03-28 Thread Pierce Freeman
Hi everyone. I have been looking into a way to search the user's hard drive for a files and have settled on Spotlight. I will say ahead of time that if anyone has a better way to search for files that are in changing places, I would love to hear about it! Anyway, all the documentation I found