getting path for files in test bundle

2011-07-14 Thread Wilker
Hi, I'm trying to do some tests here, but in case my tests have some fixture files (video files), I added them to a group Fixtures on Test target, they are also already on Copy Resources Bundle phase, but I can't get the path for them... I'm trying with: NSString *dexterPath = [[NSBundle ma

Re: getting last accessed date

2011-07-14 Thread Rick C.
Hi again, Ok I seem to be having never ending problems here unfortunately. Using this code (below) I thought I could modify it for my needs. But on the FSPathMakeRef line I keep getting the warning that "pointer targets in passing argument 1 of 'FSPathMakeRef' differ in signedness." Would so

Re: getting last accessed date

2011-07-14 Thread Matt Gough
> But on the FSPathMakeRef line I keep getting the warning that "pointer > targets in passing argument 1 of 'FSPathMakeRef' differ in signedness." > Would someone mind telling me why I'm getting this error? Thanks you very > much! Because FSPathMakeRef takes a UInt8* as its first parameter,

Re: getting path for files in test bundle

2011-07-14 Thread Fritz Anderson
On 14 Jul 2011, at 2:11 AM, Wilker wrote: > I'm trying to do some tests here, but in case my tests have some fixture > files (video files), I added them to a group Fixtures on Test target, they > are also already on Copy Resources Bundle phase, but I can't get the path > for them... I'm trying wit

perform a NSFecthRequest on Self

2011-07-14 Thread Gustavo Adolfo Pizano
Hello. I have a MO A which has a to-many relationship to another MO B)). I want to perform a fetch on A to look for its related B but on a specific property o B. I have tried getting all the toB set form A and filter the set using a Predicate with the B's property, but this takes quite long. a

Re: iOS UI Design Question / Opinions wanted

2011-07-14 Thread John Tsombakos
On Thu, Jul 14, 2011 at 1:25 AM, Roland King wrote: > Custom button with your own graphic tick/cross is probably what I'd use for > this. That's easy to do and fits pretty well with the ios look and feel. > Either have two buttons and use them as radio buttons (unselect one when > you hit the ot

Re: iOS UI Design Question / Opinions wanted

2011-07-14 Thread Thomas Davie
On 14 Jul 2011, at 06:05, John Tsombakos wrote: > Hi, > > Just getting more into iOS development, and am deciding on what to do for an > app. One app is a "competition scoring" application, where the judges would > use the app to calculate and score a game. The scores would are derived from > a

Re: iOS UI Design Question / Opinions wanted

2011-07-14 Thread John Tsombakos
On Thu, Jul 14, 2011 at 8:14 AM, Thomas Davie wrote: > > Along with various other people, I have a custom UISwitch that does exactly > what you require, it's available here http://whataboutapp.co.uk/ > > Tom Davie That looks exactly what I would want! Thanks! ___

[MEET] CocoaHeadsNYC tonight. Jalkut. Raffle. Pizza.

2011-07-14 Thread Andy Lee
The New York City CocoaHeads is meeting tonight, July 14. Daniel Jalkut will give a talk entitled "Block, Don’t Run: An intro to Cocoa run loops": NSRunLoop lives at the heart of every Cocoa application for iOS or Mac OS X, yet many developers don’t have a clear understanding for how

Question about NSThread

2011-07-14 Thread Eric E. Dolecki
I haven't done much research, but if I have a method that does a lot of looping, can I just safely bust this off (fire and forget)? [NSThread detachNewThreadSelector:@selector(generateBigData) toTarget:self withObject:nil]; ___ Cocoa-dev mailing list (C

Re: Question about NSThread

2011-07-14 Thread Jeff Kelley
You *can*, but there is a limit to the number of threads you can create, and even if you’re under the limit, you’ll likely be pegging the CPU in an inefficient way. You would be better served using GCD and creating a dispatch queue, then scheduling the task on that queue (or just using a global que

Re: Question about NSThread

2011-07-14 Thread Eric E. Dolecki
Thank you for your feedback, I appreciate it. Eric On Thu, Jul 14, 2011 at 10:38 AM, Jeff Kelley wrote: > You *can*, but there is a limit to the number of threads you can create, > and > even if you’re under the limit, you’ll likely be pegging the CPU in an > inefficient way. You would be bette

Re: Question about NSThread

2011-07-14 Thread Ken Thomases
On Jul 14, 2011, at 9:08 AM, Eric E. Dolecki wrote: > I haven't done much research, but if I have a method that does a lot of > looping, can I just safely bust this off (fire and forget)? > > [NSThread detachNewThreadSelector:@selector(generateBigData) toTarget:self > withObject:nil]; When it co

Re: Exposing NSTableView's usesAlternatingRowBackgroundColors in the user preferences

2011-07-14 Thread Kyle Sluder
On Tue, Jul 12, 2011 at 11:53 AM, Peter wrote: > I'd like to expose NSTableView's option usesAlternatingRowBackgroundColors as > a settable preference in my app's preferences window. "Easy, just use a > binding", I thought before I realized that NSTableView does not expose this > setting via bi

Re: QTMovie/QTMovieLayer and SSL client athentication...

2011-07-14 Thread Glen Haderman
Sorry, I was misinterpreting what I was seeing in the apache log. A client certificate is **not** being sent back to the server upon request from the server. We can also see this by setting breakpoints on SSLHandshake and SSLSetCertificate.  SSLHandshake is getting called at the right times and

Core Data search optimizations

2011-07-14 Thread Indragie Karunaratne
Hi guys, I'm working on a search feature in one of my Core Data based apps and I'm trying to gather everyone's tips on search optimization to get it as fast as I possibly can. The search needs to be fast enough that it can deliver near-instantaneous results for database of 20,000+ objects. Wha

Re: getting path for files in test bundle

2011-07-14 Thread Wilker
Thanks a lot Fritz :) --- Wilker Lúcio http://about.me/wilkerlucio/bio Kajabi Consultant +55 81 82556600 On Thu, Jul 14, 2011 at 8:30 AM, Fritz Anderson wrote: > On 14 Jul 2011, at 2:11 AM, Wilker wrote: > > > I'm trying to do some tests here, but in case my tests have some fixture > > files (v

Re: Core Data search optimizations

2011-07-14 Thread Heath Borders
I would use CLucene for this. It isn't as easy to use as CoreData (it is written in C++, so you'll need some Objective-C++ as a shim at a minimum), but it is powerful and VERY fast. -Heath >From my iTouch4 On Jul 14, 2011, at 1:17 PM, Indragie Karunaratne wrote: > Hi guys, > > I'm working on a

Re: Exposing NSTableView's usesAlternatingRowBackgroundColors in the user preferences

2011-07-14 Thread Peter
Thanks Kyle for the enlightenment! Very much appreciated. So however awkward - I guess I have to live with this technique. Am 14.07.2011 um 18:29 schrieb Kyle Sluder: > On Tue, Jul 12, 2011 at 11:53 AM, Peter wrote: >> I'd like to expose NSTableView's option usesAlternatingRowBackgroundColors >

model key path and properties

2011-07-14 Thread Torsten Curdt
Xcode4.0.2 on 10.6.8: I have a NSArrayController and I add items to that controller. In the nib I have bound a NSPopUpButton's "Content" to that NSArrayController's arrangedObjects. Now with an empty model key path I see the object's description in the popup. All good and expected. Now these items

Re: Core Data search optimizations

2011-07-14 Thread Indragie Karunaratne
Thanks for the replies. However, my app is already built on top of Core Data so switching to another framework isn't really an option. On 2011-07-14, at 2:58 PM, Ruslan Zasukhin wrote: > On 7/14/11 9:15 PM, "Indragie Karunaratne" wrote: > > Hi Indragie, > > You may want to consider just to

Control and default colors?

2011-07-14 Thread Jeffrey Walton
Hi ALl, Is it possible to query a control (such as a background or button) for its default color? Under interface builder, there appears to be a default color recognized. Is this specific to IB? I'm more interested in assigning the default color at runtime (if the user previously changed it), but

A better solution? - Accessing an array of strings saved to user defaults via bindings (solved in the end...)

2011-07-14 Thread Peter
I have found various references on this list and on the web about the impossibility to hook up an *editable* single-column NSTableView to an NSMutableArray of strings via bindings - and about some clever ways to work around this limitation. These workarounds may work in principle, but fail in a

Key-value coding dynamically-created arrays in NSTableView

2011-07-14 Thread John Bartleson
Many of us are familiar with the use of key-value coding in NSTableView and NSOutlineView data-source methods. For example (from Key-Value Coding Programming Guide): - (id) tableView:(NSTableView *)tableview objectValueForTableColumn:(id)column

Re: model key path and properties

2011-07-14 Thread Quincey Morris
On Jul 14, 2011, at 15:29, Torsten Curdt wrote: > I have a NSArrayController and I add items to that controller. In the > nib I have bound a NSPopUpButton's "Content" to that > NSArrayController's arrangedObjects. Now with an empty model key path > I see the object's description in the popup. All

Re: iOS UI Design Question / Opinions wanted

2011-07-14 Thread John Tsombakos
On Thu, Jul 14, 2011 at 9:26 AM, John Tsombakos wrote: > On Thu, Jul 14, 2011 at 8:14 AM, Thomas Davie wrote: > >> >> Along with various other people, I have a custom UISwitch that does >> exactly what you require, it's available here http://whataboutapp.co.uk/ >> >> Tom Davie > > > That looks e

Re: Key-value coding dynamically-created arrays in NSTableView

2011-07-14 Thread Quincey Morris
On Jul 14, 2011, at 17:08, John Bartleson wrote: > Here the column identifier specified in the nib is used to select which > ChildObject accessor > to use as the source for the column's data. > > But suppose the columns of the tableView are not defined in the nib. Instead, > they are defined >

another attributes question

2011-07-14 Thread Rick C.
Hi again, I am trying now to get the Kind attribute like what shows in a Finder Get Info panel. I have tried LSCopyKindStringForURL and also kMDItemKind but both of these list the "shortened" version of Kind in Finder not the longer version you see in the Get Info panel. So for example on an

iOS: AVFoundation, creating sample buffers for an AVAssetWriter from OpenGL ... so confused :-/

2011-07-14 Thread John Michael Zorko
Hello, all ... I'm trying to create a sample buffer from an OpenGL view using glReadPixels(), so I can write the sample buffer with an AVAssetWriter I set up. I'm recording audio and video, and i'm really quite confused as to how to do this. So far, i'm recording audio and video straight from