Re: NSCollectionView file promise drag & drop and selection

2010-10-01 Thread Markus Spoettl
On Sep 30, 2010, at 4:25 PM, Nick Zitzmann wrote: > I searched for answers for these two questions and did not find anything > pertinent: > > 1. I noticed that, on Snow Leopard, when the user clicks on a collection view > item, the item is selected, but it doesn't do this on Leopard. Instead, on

Re: Continuously running daemon process CFConstantStringRefs build up over time

2010-10-01 Thread Dave Keck
Since you're writing a daemon, you'll need to handle autorelease-pool creation and draining manually (something that's normally handled by NSApplication in standard AppKit apps.) Perhaps objects are autoreleased and placed in the root autorelease pool (that you might be creating in main() or the li

Re: portable app

2010-10-01 Thread Ariel Feinerman
He looks for technique to >store the app and all the data/images on a thumb drive, not to the /Library. 2010/10/1 Laurent Daudelin : > [NSBundle mainBundle] will return the path of the application bundle, not > ~/Library/Application Support/[App Name]. You need to use > "NSSearchPathForDirectori

Re: Changing classes

2010-10-01 Thread Remco Poelstra
Op 30-9-2010 21:58, Quincey Morris schreef: It's not at all obvious that having your class(es) "represent" your hardware is the right way to approach this. What are you actually trying to achieve? If the various kinds of hardware are differentiated by their "properties", then a single class enca

NSTask in NSOperation

2010-10-01 Thread Kunal Parmar
I am using a NSTask in NSOperation. But I am not getting any notifications. Here's the code: - (void)start { if ([self isCancelled]) { // Move the operation to the finished state if it is canceled. [self willChangeValueForKey:@"isFinished"]; finished = YES;

NSMenuItem enabling

2010-10-01 Thread Andreas Höschler
Hi all, in my application I have an NSWindow with NSScrollView/NSTextView and while programmatically building the menu for the application I am doing [_sdmMenu addItemWithTitle:@"Create Section" action:@selector(createSection:) keyEquivalent:@"S"]; My NSTextView subclass implements

Re: portable app

2010-10-01 Thread Amy Heavey
This looks great, so I can store everything on the thumbdrive without having to set up symlinks on the machines I want to use, and I don't have to reference the drive itself as I can take the location from the app bundle, perfect. ( a bit like web relative links I suppose,) sorry, I did mea

QTMovie raw data

2010-10-01 Thread slasktrattena...@gmail.com
Hi, I guess the answer to my simple question is no, but figured I better ask before I go digging elsewhere. I have a QTMovie, initialized with a MP3 file downloaded from a remote server (i.e -initWithURL:). Is it possible to extract the raw data from the QTMovie object, so I can save the MP3 in i

Re: NSCollectionView file promise drag & drop and selection

2010-10-01 Thread Nick Zitzmann
On Oct 1, 2010, at 1:19 AM, Markus Spoettl wrote: > Are you sure that is the case? My collection views work the same on Leopard > and Snow Leopard. Yes, I'm sure. I just ran the SourceView sample application on two different computers, one running Leopard and the other running Snow Leopard. O

Re: QTMovie raw data

2010-10-01 Thread Mike Abdullah
I suspect the answer is no. Assuming that, I would suggest writing a custom URL protocol that writes the incoming data to disk (or in-memory), while passing out to QuickTime. On 1 Oct 2010, at 16:03, slasktrattena...@gmail.com wrote: > Hi, > > I guess the answer to my simple question is no, bu

What does core data do during a Save As?

2010-10-01 Thread Gideon King
Hi, I'm still trying to sort out what is happening to my to-one relationships during a Save As operation (see Core data: Inverse relationships with subclasses thread for context if necessary, but this really is a standalone thread now) - it turns out that the subclasses/subentities questions wer

Re: Changing classes

2010-10-01 Thread Allen Ingling
On Fri, Oct 1, 2010 at 4:19 AM, Remco Poelstra wrote: > I think I do not fully understand the difference you are trying to make > between device and class behaviour. I think what he means is: use a single class for representing all of your amplifier types instead of one unique subclass per amp

Re: Why is NSPopUp broken in drop-down mode?

2010-10-01 Thread G S
"Pull-down controls are intended to be filled with commands. They do not behave like popup controls. If you want the popup behavior, you must have the popup appearance." You mean APPLE'S pop-up behavior. The up/down decision should have nothing to do with any other operational mode of the control

Re: QTMovie raw data

2010-10-01 Thread slasktrattena...@gmail.com
Thanks. This was my idea too, but I was under the impression I cannot feed QuickTime with incoming data? Admittedly, I haven't really scrutinized the API. Will do now. On Fri, Oct 1, 2010 at 6:00 PM, Mike Abdullah wrote: > I suspect the answer is no. Assuming that, I would suggest writing a custo

Re: QTMovie raw data

2010-10-01 Thread Mike Abdullah
I mean that you would continue using -initWithURL: but feed it a custom URL scheme. Hopefully QTMovie will load that scheme using standard NSURLConnection internally. Whereupon you can write a custom protocol handler that grabs data from correct scheme. On 1 Oct 2010, at 17:38, slasktrattena...

Re: Why is NSPopUp broken in drop-down mode?

2010-10-01 Thread Quincey Morris
On Oct 1, 2010, at 09:37, G S wrote: > "Pull-down controls are intended to be filled with commands. They do > not behave like popup controls. If you want the popup behavior, you > must have the popup appearance." > > You mean APPLE'S pop-up behavior. The up/down decision should have > nothing to

Re: Changing classes

2010-10-01 Thread Quincey Morris
On Oct 1, 2010, at 02:19, Remco Poelstra wrote: > I'm representing network enabled amplifiers, some of which have multiple > inputs, some not. Other have surveillance features build in, which others > might not have. > I'm not trying to simulate them, just representing them so I can communicate

Re: What does core data do during a Save As?

2010-10-01 Thread Quincey Morris
On Oct 1, 2010, at 09:03, Gideon King wrote: > Hi, I'm still trying to sort out what is happening to my to-one relationships > during a Save As operation (see Core data: Inverse relationships with > subclasses thread for context if necessary, but this really is a standalone > thread now) - it t

Question regarding UIView fading

2010-10-01 Thread Eric E. Dolecki
I have a UIView with some elements in it. When I fade this out (UIView beginAnimations), I can see elements fading at different rates. In Flash AS3 we can change the blendMode to "Layer" to handle this - is there a similar trick in iPhone land? Google Voice: (508) 656-0622 Twitter: eric_dole

Re: What does core data do during a Save As?

2010-10-01 Thread Gideon King
Aargh!!! That is just so totally broken, if it can't handle a scenario like that. I'm not sure that this is my problem though. I do have a parent/child relationship, and I am seeing the problem on a number of relationships on the parent entity and one relationship on the child entity, but also

Re: NSTask in NSOperation

2010-10-01 Thread Kyle Sluder
On Thu, Sep 30, 2010 at 8:26 PM, Kunal Parmar wrote: > I am using a NSTask in NSOperation. But I am not getting any notifications. NSTask relies on a runloop. Since you have no control over what thread your operation runs in, you can't run a runloop on your operation's thread, and therefore canno

Re: Why is NSPopUp broken in drop-down mode?

2010-10-01 Thread Julien Jalon
> developers have been able to dictate in other platforms' UIs Welcome to the modern Mac platform where the frameworks try to ensure a coherent user experience, especially for basic controls. -- Julien ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Adding subviews to collapsed splitview

2010-10-01 Thread Gideon King
Hi, I have a splitview (actually an RBSplitView), split into left and right, that I add another RBSplitView to at runtime in the right subview, and that split view that is added has a text view and an outline view as its subviews. All this works fine when the pane where I put the splitview that

Re: Why is NSPopUp broken in drop-down mode?

2010-10-01 Thread G S
> Welcome to the modern Mac platform where the frameworks try to ensure a > coherent user experience, especially for basic controls. How is this behavior "coherent"? As has already been noted, it's inconsistent between drop-down lists and combo boxes. Also, nothing indicates to the developer wh

Re: Why is NSPopUp broken in drop-down mode?

2010-10-01 Thread Julien Jalon
Let me rephrase: same control should have the same behavior across applications. Cocoa framework enforce that rule. Disagreeing with Apple choices about how each control should work is an other story that I'm not sure is interesting for this list. If you want to develop for MacOS X, embrace the f

Re: Adding subviews to collapsed splitview

2010-10-01 Thread Rainer Brockerhoff
At 11:54 -0700 01/10/10, cocoa-dev-requ...@lists.apple.com wrote: >From: Gideon King >Date: Sat, 2 Oct 2010 04:51:10 +1000 >Message-ID: <3dda7a4e-c5d4-45d9-bf47-0a585ce4d...@novamind.com> > >Hi, I have a splitview (actually an RBSplitView), split into left and right, >that I add another RBSplitVi

Re: Continuously running daemon process CFConstantStringRefs build up over time

2010-10-01 Thread Kevin Ross
Thanks for your insight Dave, In my current implementation I do have an autorelease pool being created and released at the end of main, as well as inside each posted notification that NSFileHandle posts on each background thread. Upon further inspection the largest culprits are not CFConstantS

Re: Continuously running daemon process CFConstantStringRefs build up over time

2010-10-01 Thread Scott Ribe
On Oct 1, 2010, at 2:15 PM, Kevin Ross wrote: > libsqlite3.dylib mallocs 35 objects that are still considered "live" Sqlite manages its own cache. -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Coc

Re: Why is NSPopUp broken in drop-down mode?

2010-10-01 Thread Seth Willits
On Oct 1, 2010, at 12:06 PM, G S wrote: >> Welcome to the modern Mac platform where the frameworks try to ensure a >> coherent user experience, especially for basic controls. > > How is this behavior "coherent"? > > And "modern"? You're kidding, right? The controls are what they are and sho

Re: Continuously running daemon process CFConstantStringRefs build up over time

2010-10-01 Thread Kevin Ross
Thanks a million Scott, I've started reading the sqlite documentation and it looks like I can adjust the PRAGMA cache_size to let me tweak the size of the cache. I am only writing to the database with this daemon and I'll try to dig up any other options that might help optimize it for this sc

Elegant Way to Create Localized String

2010-10-01 Thread Jason Barker
Hi everyone, I'm working on an app with localized strings. I've got one string which contains placeholder values and depending upon the user's language settings, it should format the string with the values in a different order. For example, in English, the string would be formatted as: "... ...

Re: Elegant Way to Create Localized String

2010-10-01 Thread Dave DeLong
Would probably use the numbered replacement format. In english, your format string would be: @"%...@... %...@... %...@..." And in the other language, it'd be: @"%...@... %...@... %...@..." Then you'd use it like normal: NSString * translated = [NSString stringWithFormat:format, value1, value

Re: Continuously running daemon process CFConstantStringRefs build up over time

2010-10-01 Thread Dave Keck
>        CFStringRef hexStringRef = CFStringCreateWithFormat( NULL, NULL, > CFSTR("%x"), versionValue );   <- Instruments is hi-lighting this line as > an allocation. It sounds like you found the cause of your persisting string objects so the details of CFSTR is irrelevant, but to clarify an

Re: Elegant Way to Create Localized String

2010-10-01 Thread Shawn Erickson
On Fri, Oct 1, 2010 at 3:12 PM, Jason Barker wrote: > Hi everyone, > > I'm working on an app with localized strings.

Re: Elegant Way to Create Localized String

2010-10-01 Thread Jason Barker
Shawn and Dave, This solution is exactly what I needed. The link provided by Shawn contains the info stated by Dave. Thank you very much, Jason Sent from my iPhone On Oct 1, 2010, at 5:50 PM, Shawn Erickson wrote: > On Fri, Oct 1, 2010 at 3:12 PM, Jason Barker wrote: >> Hi everyone, >> >> I

Re: QTMovie raw data

2010-10-01 Thread slasktrattena...@gmail.com
I spent a few hours trying to hack QTKit, but all to no avail. It looks like the DL is handled by something called QTMovieMediaHelper and it is not using any standard NSURLConnection scheme. I ended up using CFReadStream+AudioToolbox instead. Works perfectly now. Thanks. On Fri, Oct 1, 2010 at 6:

Re: What does core data do during a Save As?

2010-10-01 Thread Gideon King
Following this discussion, I thought I would do a different test by making the back links transient and saying that they were not inverse links from the original ones, and making sure that they were manually set where required. But the validation errors still occurred, though now it is just the

info.plist with DYLD_LIBRARY_PATH = ~/test

2010-10-01 Thread Kurt Sutter
In our application, the user should be able to change the version of a library that the application is linked to. Specifically, our application links to the Python library. However, some users want to use the Python at /System/Library/Frameworks/Python.framework/Versions/2.6, while others may wa

App works in debugger, won't launch in Finder

2010-10-01 Thread Rick Mann
I have an app that has a framework internally (and some plug-ins). When I launch it from Xcode (debugging), everything works fine. But if I launch it by double-clicking the icon in the Finder, I get the crash dialog with "Library not loaded: foo", where foo is the internal framework. The path t

Coverflow API in Mac OS 10.6

2010-10-01 Thread Bilel Mhedhbi
Hi, I need to implement a Coverflow like UI in my application and i don't know if there is an object already available in some API. Can somebody answer to me? Thanks.___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reque

NSWindow orderFront

2010-10-01 Thread richard.gustavsen
Hi! Does anyone know how to get a callback from NSWindow when it's ordered front? A normal NSWindow can sometimes have key/main status, but at the same time be obscured by other windows in the application. And if you click on it, it will be raised to front (without any key/main changes). And I n

Re: Coverflow API in Mac OS 10.6

2010-10-01 Thread Nick Zitzmann
On Oct 1, 2010, at 4:08 PM, Bilel Mhedhbi wrote: > I need to implement a Coverflow like UI in my application and i don't know if > there is an object already available in some API. Can somebody answer to me? Technically there is, but it's private and undocumented at this time. You're better of