Re: Run Loop in Tool Idles for 60.0 seconds before exitting [Solved]

2010-04-04 Thread Turd Burp
>This seems to imply that a -performSelector::: method is indeed a > run loop source, with all the incorporated privileges and > responsibilities. This was how it appeared to me as well. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Run Loop in Tool Idles for 60.0 seconds before exitting [Solved]

2010-04-04 Thread Jerry Krinock
On 2010 Apr 04, at 14:44, Ken Thomases wrote: > Have you read and understood the documentation for -[NSRunLoop > runMode:beforeDate:]? Read? Yes. Understood? Well, probably I was misled by the way things "just almost worked". > ... Frankly, it seems like pure luck that it's ever exiting.

Re: [iPhone]Is it possible for apps to use the file sharing directory?

2010-04-04 Thread Development
Well, I finally found the answer. I was using a bad search phrase which is why it did not come up before. Turns out it's well documented. On Apr 4, 2010, at 1:27 PM, Development wrote: > I have an app that I would like to be able to have use the file sharing > directory so that it's data

Proposal for category in plugin environment

2010-04-04 Thread JongAm Park
Hello, I'm not not sure if it should be only implemented on language side in gcc or cocoa also need to handle it, but I posted a proposal to my blog about category under plugin environment. ( http://jongampark.wordpress.com/2010/04/04/proposal-for-category-in-plugin-environment/ ) Are Apple p

How do I compare two NSDates using NSPredicate & Core Data

2010-04-04 Thread Michael A. Crawford
Thus far I've gotten away with using -predicateWithFormat and scalar values. I now need to compare a couple of NSDate instances but am not sure how to code it up with NSPredicate. Consider me a 'visual' learner. -Michael ___ Cocoa-dev mailing list (

Re: Two text fields, one outlet?

2010-04-04 Thread Jenny M
Thanks everyone! Your answers helped, it's what I thought, I was just overthinking things. > You can certainly bind any number of UI objects to a single property of an > object. > > Specifying an IBOutlet is only necessary if you want to create a connection > and can only be connected to one thi

Re: How do I get a file reference w/o relying on the path?

2010-04-04 Thread Charles Srstka
On Apr 4, 2010, at 12:50 PM, Jens Alfke wrote: > You're saying that if I have a FSRef to a file, then the file is moved, the > FSRef will still reference the moved file and not the location where it used > to be? > > That's surprising to me, because FSRefs were created as a replacement for > F

Re: [iPhone]Is it possible for apps to use the file sharing directory?

2010-04-04 Thread Kyle Sluder
On Sun, Apr 4, 2010 at 5:26 PM, Eli Bach wrote: > The 3.2 SDK is now under the 'regular' nda, as it's no longer > beta/prerelease.  It's a small 2.4 Gb download... Historically, Scott has needed to give the go-ahead before discussion of anything new is allowed on this list. This applies to deskt

Re: [iPhone]Is it possible for apps to use the file sharing directory?

2010-04-04 Thread Eli Bach
On Apr 4, 2010, at 3:44 PM, Jens Alfke wrote: > iPad apps can do this. But the 3.2 OS APIs are still under NDA. If you > download the iPad SDK, you might be able to find documentation, but we can't > talk about it here yet. > > --Jens {via iPad} The 3.2 SDK is now under the 'regular' nda, as

Re: Terminating subtasks reliably

2010-04-04 Thread Scott Ribe
> Why not have the parent call setsid() / setpgid() at the beginning? IIRC, odd things happen if a GUI app is not in the Login Window's process group... -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Co

Re: Run Loop in Tool Idles for 60.0 seconds before exitting

2010-04-04 Thread Ken Thomases
On Apr 4, 2010, at 4:06 PM, Jerry Krinock wrote: > while ( >![[AgentPerformer sharedPerformer] isDone] >&& >[[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode > beforeDate:[NSDate distantFuture]]) { > NSLog(@"Did Run") ; >

Re: [iPhone]Is it possible for apps to use the file sharing directory?

2010-04-04 Thread Jens Alfke
iPad apps can do this. But the 3.2 OS APIs are still under NDA. If you download the iPad SDK, you might be able to find documentation, but we can't talk about it here yet. --Jens {via iPad} On Apr 4, 2010, at 1:27 PM, Development wrote: > I have an app that I would like to be able to ha

Run Loop in Tool Idles for 60.0 seconds before exitting

2010-04-04 Thread Jerry Krinock
My app package includes a tool which can be invoked to do some of the work that the main app normally does, kind of like xcodebuild. In the tool, I create and run a run loop with this code: while ( ![[AgentPerformer sharedPerformer] isDone] && [[NSRunLoop currentRunLoop]

Re: Multi Window cocoa application

2010-04-04 Thread Sebastian Morsch
Hi Bharadwaj, I can't point you to the resources/sample code, but maybe this helps you anyway: when following the MVC paradigm, windows must NOT communicate with each other directly. Instead, they are usually owned by window controllers (subclasses of NSWindowController you will have to w

re: Finding managed objects by URI representation

2010-04-04 Thread Ben Trumbull
> I have some queries that used to look up objects based on an elementID > attribute, which used to be my unique identifier for objects, created when > the objects were inserted or loaded. I am now moving away from that and using > the standard managed object IDs and reference objects. > > So I

[iPhone]Is it possible for apps to use the file sharing directory?

2010-04-04 Thread Development
I have an app that I would like to be able to have use the file sharing directory so that it's data could be accessed via iTunes. I've not had any luck finding information on doing this... Is it even possible? April.___ Cocoa-dev mailing list

Multi Window cocoa application

2010-04-04 Thread Bharadwaj Parthasarathy
Hi, I am currently working on porting an existing open source windows application to mac OSX. I am fairly new to cocoa programming. The application involves opening a new window for a specifying the parameters of the simulation. The second window has about 20 textboxes and cannot be a mod

Re: Terminating subtasks reliably

2010-04-04 Thread Julian Hsiao
Why not have the parent call setsid() / setpgid() at the beginning? This should prevent the PID from getting recycled until every process in the process group exits. Julian Hsiao mad...@nyanisore.net On Apr 2, 2010, at 8:10 PM, Michael Ash wrote: > On Thu, Apr 1, 2010 at 7:19 PM, Dave Keck w

Re: How do I get a file reference w/o relying on the path?

2010-04-04 Thread Ken Thomases
On Apr 4, 2010, at 12:50 PM, Jens Alfke wrote: > You're saying that if I have a FSRef to a file, then the file is moved, the > FSRef will still reference the moved file and not the location where it used > to be? Yes. They are file-ID-based. > That's surprising to me, because FSRefs were cre

Re: How do I get a file reference w/o relying on the path?

2010-04-04 Thread Jens Alfke
You're saying that if I have a FSRef to a file, then the file is moved, the FSRef will still reference the moved file and not the location where it used to be? That's surprising to me, because FSRefs were created as a replacement for FSSpecs, which do not have that property (they were a struct

Re: How do I get a file reference w/o relying on the path?

2010-04-04 Thread Ken Thomases
On Apr 4, 2010, at 12:06 PM, Gregory Weston wrote: > Ken Thomases wrote: > >> As of Snow Leopard, alias records are deprecated in favor of bookmark data, >> but, again, it's probably overkill. (Both alias records and bookmark data >> are more suitable if the reference is to be persisted for u

Re: How do I get a file reference w/o relying on the path?

2010-04-04 Thread Gregory Weston
Ken Thomases wrote: > As of Snow Leopard, alias records are deprecated in favor of bookmark data, > but, again, it's probably overkill. (Both alias records and bookmark data > are more suitable if the reference is to be persisted for use by a later > process. Also, both can apply more robust

What patterns did we miss in "Cocoa Design Patterns"?

2010-04-04 Thread Erik Buck
Don Yacktman and I have received feedback that "Cocoa Design Patterns" should have more coverage of multi-threaded and distributed design patterns. Some readers have asked for comparison and contrast between Cocoa design patterns and patterns in .Net or other frameworks. Is it worthwhile to re

Re: How do I get a file reference w/o relying on the path?

2010-04-04 Thread Ken Thomases
On Apr 3, 2010, at 8:31 PM, Jens Alfke wrote: > Ken, he asked for a reference that wouldn't break if the file were moved or > renamed. Neither FSrefs nor URLs have that property. Yes, they do. From the link I gave

Finding managed objects by URI representation

2010-04-04 Thread Gideon King
I have some queries that used to look up objects based on an elementID attribute, which used to be my unique identifier for objects, created when the objects were inserted or loaded. I am now moving away from that and using the standard managed object IDs and reference objects. So I used to do

Mysterious 'QLPreviewView ' crashes.

2010-04-04 Thread Paul Sanders
Anyone ever seen crashes like this before? http://www.alpinesoft.co.uk/private/crash1.txt http://www.alpinesoft.co.uk/private/crash2.txt http://www.alpinesoft.co.uk/private/crash3.txt These (just these 3) have been reported by customers over the last month or so. We have only seen them on Snow

Re: file path question

2010-04-04 Thread Rajendran_Pichaimurthy
Hi, To check the file existence use { NSFileManager *fileManager = [NSFileManager defaultManager] BOOL fileexist = [ fileManager fileExistsAtPath:YOURPATH]; } - (BOOL)fileExistsAtPath:(NSString *)path *pathForResource: ofType: inDirectory:* does not load files outside bundle Thanks Rajendran P

file path question

2010-04-04 Thread Ariel Feinerman
Hi, Can we load resource by -*pathForRecourse: ofType: inDirectory:* outside the bundle folder? Second, there is absolute path represented by NSString, is the way to check whether file exist? -- best regards Ariel ___ Cocoa-dev mailing list (Cocoa-dev@

Re: Two text fields, one outlet?

2010-04-04 Thread Joanna Carter
Hi Jenny > Is it possible to link multiple NSTextFields to one outlet? I have > three views - one of A items, one of B items, and one of both A and B > items. So the text boxes in the A view also exists in the A&B view, > and the value needs to be able to appear in both, though not at the > same t