Re: How to create process independent of current process AND that takes command line arguments?

2008-04-04 Thread Scott Ribe
> If > you fork and execv a process, then when the parent terminates, the > created process is automatically made a child of launchd. Normally when a parent process terminates, all its children are automatically terminated. The original question was how to launch a process from an app such that

Re: How to use bindings with IKImageBrowserView?

2008-04-04 Thread Adam Gerson
I know its a hybrid approach, but the upside is I did not have to call reloadData. As soon as I added an object to the arraycontroller it became available in the view. Adam On Sat, Apr 5, 2008 at 12:28 AM, Steve Weller <[EMAIL PROTECTED]> wrote: > > On Apr 4, 2008, at 2:18 PM, Adam Gerson wrote

Re: How to use bindings with IKImageBrowserView?

2008-04-04 Thread Steve Weller
On Apr 4, 2008, at 2:18 PM, Adam Gerson wrote: It does work. I have defined a core data entity that conforms to IKBrowerItem protocol and my IKImageBrowserView is working with bindings. I think you still need to point the delegate and data source outlets to an object that implements the datasour

Re: core data - beyond the simple example

2008-04-04 Thread Ben Trumbull
At 5:19 PM -0700 4/4/08, [EMAIL PROTECTED] wrote: It's a bummer the headstart videos are only available with a non-free ADC membership. really ? Did you try: -- -Ben ___ Cocoa-dev mailing list (C

Re: How to create process independent of current process AND that takes command line arguments?

2008-04-04 Thread Jonathan Prescott
All processes on MacOSX, and any Unix/Linux operating system are child processes except for launchd (MacOSX) or init (Unix/Linux). If you fork and execv a process, then when the parent terminates, the created process is automatically made a child of launchd. Jonathan On Apr 4, 2008, at 12

Re: Non-retained NSImages still available?

2008-04-04 Thread stephen joseph butler
On Fri, Apr 4, 2008 at 9:18 PM, Adam R. Maxwell <[EMAIL PROTECTED]> wrote: > Can you do that by creating too many images? The docs for +imageNamed: > say "...you do not need to retain the returned image object unless its name > could be cleared. You can clear an image object from the table by pas

Re: Non-retained NSImages still available?

2008-04-04 Thread Adam R. Maxwell
On Apr 4, 2008, at 6:43 PM, stephen joseph butler wrote: On Fri, Apr 4, 2008 at 8:29 PM, Matt R <[EMAIL PROTECTED]> wrote: imgArray[x] = [NSImage imageNamed:@"foo.jpg"]; Throughout the scope of my app, when the drawRect fires, these images always appear properly. But today I suddenly relea

Re: Non-retained NSImages still available?

2008-04-04 Thread stephen joseph butler
On Fri, Apr 4, 2008 at 8:29 PM, Matt R <[EMAIL PROTECTED]> wrote: > imgArray[x] = [NSImage imageNamed:@"foo.jpg"]; > > Throughout the scope of my app, when the drawRect fires, these images > always > appear properly. But today I suddenly released that I never retained them, > which has me kind

Non-retained NSImages still available?

2008-04-04 Thread Matt R
I'm sorry for asking a memory management question but I was hoping someone could help me understand this situation. I have a series of NSImages I place in an array (subclass instance variable) when a custom NSView is init'd: initWithFrame: imgArray[x] = [NSImage imageNamed:@"foo.jpg"];

Re: NSMutableArray removeObject: crash

2008-04-04 Thread Jens Alfke
On 4 Apr '08, at 1:08 PM, Kevin Wojniak wrote: Generally, when there are specifics like this I can fix the crash pretty easily. However, with this I'm stumped. Try setting the environment variable NSZombieEnabled to YES and running again. You should get an informative message about what

Re: core data - beyond the simple example

2008-04-04 Thread Torsten Curdt
On Apr 5, 2008, at 01:42, Quincey Morris wrote: On Apr 4, 2008, at 16:31, Torsten Curdt wrote: Got that working now ...except the predicate bug reported before. It seems that when I add another object a new predicate is set. And could that possibly be because [NSArrayController clearsFilt

Re: How do I embed a font in an app?

2008-04-04 Thread Jens Alfke
On 4 Apr '08, at 4:06 PM, Buddy Kurz wrote: I had some success with this - Works like a charm, thanks! ATSFontActivateFromFileSpecification is deprecated in Leopard, but the new replacement function, ATSFontActivateFromFileReference, is identical except for taking an FSRef instead of an

Re: Objective-C Instance Variable Names

2008-04-04 Thread Mario Gajardo Tassara
El 03-04-2008, a las 16:19, [EMAIL PROTECTED] escribió: On 3 Apr '08, at 10:58 AM, Rob Napier wrote: Apple reserves the use of leading underscores for it's own use: While they append the phrase "especially in methods," they do mean for everything, and you can collide with them if you name you

Re: core data - beyond the simple example

2008-04-04 Thread Quincey Morris
On Apr 4, 2008, at 16:31, Torsten Curdt wrote: Got that working now ...except the predicate bug reported before. It seems that when I add another object a new predicate is set. And could that possibly be because [NSArrayController clearsFilterPredicateOnInsertion] defaults to YES like the

Re: core data - beyond the simple example

2008-04-04 Thread Torsten Curdt
I've followed some tutorials to get started but somehow I am a bit lost when I want to do some more complex things. This might actually be more because of bindings than because of core data. Or maybe I just did not look at the right place. Maybe you guys can give me some hints links and so

Re: core data - beyond the simple example

2008-04-04 Thread Torsten Curdt
On Apr 4, 2008, at 18:38, I. Savant wrote: Just think of something along the lines of @interface MyObject : NSObject { NSString *name; NSString *color; } In this case, as I said, just do it the easier way first so you understand what's involved. Then if you want a 'subview as a cell

Re: core data - beyond the simple example

2008-04-04 Thread Torsten Curdt
On Apr 4, 2008, at 23:53, Jim Correia wrote: On Apr 4, 2008, at 5:44 PM, Torsten Curdt wrote: - (void)setFilter:(NSPredicate*)newFilter { if (filter != newFilter) { [filter release]; filter = newFilter; } } - (NSPredicate*)filter { retur

Re: [MEET] April CocoaHeads Mac Developer Meetings

2008-04-04 Thread Scott Ellsworth
On Fri, Apr 4, 2008 at 1:41 PM, Stephen Zyszkiewicz <[EMAIL PROTECTED]> wrote: > * Lake Forest, CA - Wednesday April 09, 2008 04:00 PM PST. Database bug: we are meeting at 7pm. Scott ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do n

Re: Can't add new file extension to app's document types

2008-04-04 Thread Rick Mann
On Apr 4, 2008, at 4:04 PM, Jerry Krinock wrote: Rick, first of all let me admit that it really brightened up my day here to visualize the confidence with which you and this Apple engineer go "click" and expect the tools to "just work". Thank you for that. Seriously, though, although Xco

Re: How do I embed a font in an app?

2008-04-04 Thread Robert Claeson
On 5 Apr 2008, at 00:37, Jens Alfke wrote: In my application's user interface I want to use some TrueType fonts which are not built into the OS. (Yes, they're free and their licenses allow this sort of use.) I thought I remembered a way to embed fonts in an application bundle, or to program

Re: How do I embed a font in an app?

2008-04-04 Thread Buddy Kurz
I had some success with this - -(void) loadFonts { // Get the main bundle object NSBundle * appBundle = [NSBundle mainBundle]; NSString *fontsPath = [[appBundle resourcePath] stringByAppendingPathComponent:@"Fonts"]; if (fontsPath) { NSURL *fontsURL =

How do I embed a font in an app?

2008-04-04 Thread Jens Alfke
In my application's user interface I want to use some TrueType fonts which are not built into the OS. (Yes, they're free and their licenses allow this sort of use.) I thought I remembered a way to embed fonts in an application bundle, or to programmatically load a font from a file; but I'm

Re: NSTask failing

2008-04-04 Thread Nir Soffer
On Apr 4, 2008, at 23:20, Randall Meadows wrote: NSArray *args = [NSArray arrayWithObjects: @"-cf", [NSString stringWithFormat:@"\"[EMAIL PROTECTED]"", tarFilePath], [NSString stringWithFormat:@"\"[EMAIL PROTECTED]"", plistPath], nil]; Try: NSArray *args = [NSArray arrayWithObj

Re: activate my application while dragging on other application window

2008-04-04 Thread Andrew Farmer
On 04 Apr 08, at 10:12, Hamish Allan wrote: On Thu, Apr 3, 2008 at 3:47 PM, Jens Alfke <[EMAIL PROTECTED]> wrote: By "any other application window", do you mean a window belonging to a _different_ application other than your own? There's no way to do that. As I said, applications aren't allo

Re: NSTask failing

2008-04-04 Thread Randall Meadows
On Apr 4, 2008, at 3:52 PM, Hamish Allan wrote: On Fri, Apr 4, 2008 at 10:43 PM, Randall Meadows <[EMAIL PROTECTED] pc.com> wrote: I assume there was supposed to be a [tarTask launch] in there somewhere, eh? :) If you like :) Now, I have no idea how I'm goint to detect an ACTUAL error

Re: core data - beyond the simple example

2008-04-04 Thread Jim Correia
On Apr 4, 2008, at 5:44 PM, Torsten Curdt wrote: - (void)setFilter:(NSPredicate*)newFilter { if (filter != newFilter) { [filter release]; filter = newFilter; } } - (NSPredicate*)filter { return filter; } Is this the exact code you are us

Re: NSTask failing

2008-04-04 Thread Hamish Allan
On Fri, Apr 4, 2008 at 10:43 PM, Randall Meadows <[EMAIL PROTECTED]> wrote: > I assume there was supposed to be a [tarTask launch] in there somewhere, > eh? :) If you like :) > Now, I have no idea how I'm goint to detect an ACTUAL error condition; You could just connect the resultsPipe to s

Re: NSTask failing

2008-04-04 Thread Randall Meadows
On Apr 4, 2008, at 3:40 PM, Peter Maurer wrote: I've tried making the arguments only 1 entry in the array, and the same thing; I've both quoting and not quoting the arguments, and the same thing; I've tried using a dash with the options and without, and the same thing--always status=2 (fatal

Re: core data - beyond the simple example

2008-04-04 Thread Torsten Curdt
On Apr 4, 2008, at 22:49, I. Savant wrote: I already have implemented KVC according to ... you didn't include the actual implementation in your code listing, so we're forced to take your word for it. Therefore, I conclude that your assertion is false. ;-) - (void)setFilter:(NSPredicate*)new

Re: NSTask failing

2008-04-04 Thread Randall Meadows
On Apr 4, 2008, at 3:14 PM, Hamish Allan wrote: NSArray *args = [NSArray arrayWithObjects: @"cfv", tarFilePath, plistPath, nil]; tarTask = [[[NSTask alloc] init] autorelease]; [tarTask setLaunchPath:@"/usr/bin/tar"]; [tarTask setArguments:args]; NSPipe *resultsPipe = [NSPipe pipe]; NSFileHandle

Re: NSTask failing

2008-04-04 Thread Peter Maurer
I've tried making the arguments only 1 entry in the array, and the same thing; I've both quoting and not quoting the arguments, and the same thing; I've tried using a dash with the options and without, and the same thing--always status=2 (fatal error). You should unquote those paths, becaus

Re: enterFullScreenMode trouble

2008-04-04 Thread slasktrattenator
Thanks for the reply. Actually I read those posts already, that's why I threw out the question here to see if someone could confirm it's a bug. Guess I'll have to revert to setting up the full screen environment manually. On Fri, Apr 4, 2008 at 11:24 PM, Sean McBride <[EMAIL PROTECTED]> wrote: > >

Re: enterFullScreenMode trouble

2008-04-04 Thread Sean McBride
On 4/4/08 5:28 PM, [EMAIL PROTECTED] said: >I'm having a small problem with NSView's >enterFullScreenMode:withOptions: method. The windowed view handles >keyboard events by overriding keyDown:, but once I enter fullscreen >mode it stops receiving these events, all I get is a NSBeep. I have >correc

Re: NSMutableArray removeObject: crash

2008-04-04 Thread Peter Maurer
0 libobjc.A.dylib 0x92d066f9 objc_msgSend + 41 1 com.apple.CoreFoundation 0x96d4b720 -[NSMutableArray removeObject:] + 96 This could also be due to another over-released object in the array (which is accessed via -isEqual: or something similar d

re: core data - beyond the simple example

2008-04-04 Thread Ben Trumbull
Torsten, I've followed some tutorials to get started but somehow I am a bit lost when I want to do some more complex things. This might actually be more because of bindings than because of core data. Or maybe I just did not look at the right place. Maybe you guys can give me some hints links

Re: NSTask failing

2008-04-04 Thread Michael Vannorsdel
The error 2 means tar is not happy with one of both provided paths. Try printing out both paths and make sure they're proper. Paths passed to NSTask should not have escapes such as "/Some\ Folder/ file.tar", it should be "/Some Folder/files.tar". On Apr 4, 2008, at 3:00 PM, Randall Meadow

Re: How to use bindings with IKImageBrowserView?

2008-04-04 Thread Adam Gerson
It does work. I have defined a core data entity that conforms to IKBrowerItem protocol and my IKImageBrowserView is working with bindings. I think you still need to point the delegate and data source outlets to an object that implements the datasource methods: //

Re: NSTask failing

2008-04-04 Thread Hamish Allan
On Fri, Apr 4, 2008 at 9:20 PM, Randall Meadows <[EMAIL PROTECTED]> wrote: > NSArray *args = [NSArray arrayWithObjects: >@"-cf", >[NSString stringWithFormat:@"\"[EMAIL PROTECTED]"", tarFilePath], >[NSString stringWithFormat:@"\"[EMAIL PROTECTED]"", plistPath], >nil]; > tarTask =

Re: NSTask failing

2008-04-04 Thread Herb Petschauer
On 04/04/2008, Randall Meadows <[EMAIL PROTECTED]> wrote: > > So I wonder what your stringWithFormat results actually look like. > > > > Just as you'd expect; something like > > "/Users/randy/Desktop/file.tar" > > I did the stringWithFormat: merely to quote the path, but upon reading the > docs

Re: NSTask failing

2008-04-04 Thread Randall Meadows
On Apr 4, 2008, at 2:56 PM, Nir Soffer wrote: On Apr 4, 2008, at 23:20, Randall Meadows wrote: NSArray *args = [NSArray arrayWithObjects: @"-cf", [NSString stringWithFormat:@"\"[EMAIL PROTECTED]"", tarFilePath], [NSString stringWithFormat:@"\"[EMAIL PROTECTED]"", plistPath], nil];

Re: NSTask failing

2008-04-04 Thread Randall Meadows
On Apr 4, 2008, at 2:36 PM, Herb Petschauer wrote: On 04/04/2008, Randall Meadows <[EMAIL PROTECTED]> wrote: NSArray *args = [NSArray arrayWithObjects: @"-cf", [NSString stringWithFormat:@"\"[EMAIL PROTECTED]"", tarFilePath], [NSString stringWithFormat:@"\"[EMAIL PROTECTED]"", plistPath],

Re: core data - beyond the simple example

2008-04-04 Thread I. Savant
> I already have implemented KVC according to ... you didn't include the actual implementation in your code listing, so we're forced to take your word for it. Therefore, I conclude that your assertion is false. ;-) Post your code so list members can verify. The day's over for me and I face a

[MEET] April CocoaHeads Mac Developer Meetings

2008-04-04 Thread Stephen Zyszkiewicz
Greetings, CocoaHeads is an international Mac programmer's group. We specialize in Cocoa, but everything Mac programming related is welcome. Why Should I Attend? Meeting other Mac OS X developers in person is both fun and immensely useful. There's no better way to learn Cocoa or get help with p

Re: NSTask failing

2008-04-04 Thread Herb Petschauer
On 04/04/2008, Randall Meadows <[EMAIL PROTECTED]> wrote: > I'm having problems with what should be a simple NSTask invocation: > > NSArray *args = [NSArray arrayWithObjects: >@"-cf", >[NSString stringWithFormat:@"\"[EMAIL PROTECTED]"", tarFilePath], >[NSString stringWithFormat:@"\"[EM

Re: core data - beyond the simple example

2008-04-04 Thread Hamish Allan
On Fri, Apr 4, 2008 at 5:21 PM, Torsten Curdt <[EMAIL PROTECTED]> wrote: > Just think of something along the lines of > > @interface MyObject : NSObject > { > NSString *name; > NSString *color; > > } Take a look at /Developer/Examples/AppKit/DragNDropOutlineView/ImageAndTextCell.[hm]

Re: NSMutableArray removeObject: crash

2008-04-04 Thread Kevin Wojniak
On Apr 4, 2008, at 4:18 PM, Shawn Erickson wrote: What are the exception codes for this "crash". Are you sure it is a crash and not a report of runtime exception? (aka the notifications object is nil) Are you somehow over releasing the object that posts the notification (aka the self used at tim

Re: Main Thread UI and Detached Thread

2008-04-04 Thread Shawn Erickson
On Fri, Apr 4, 2008 at 12:08 AM, Mike <[EMAIL PROTECTED]> wrote: > If that is the case then why does the progress bar get updated with the > correct value every time when I insert the sleep( 1 ) call? Obviously it > wouldn't be displaying the correct value if garbage was being sent to the > selec

Re: core data - beyond the simple example

2008-04-04 Thread Torsten Curdt
Any thoughts on that? Yes. Remember the prerequisites I mentioned? 4 - Bindings (and probably the required KVC/KVO concepts). This means "Key Value Coding" / "Key Value Observing". Lack of proper KVO encapsulation is

Re: NSMutableArray removeObject: crash

2008-04-04 Thread Hamish Allan
On Fri, Apr 4, 2008 at 9:08 PM, Kevin Wojniak <[EMAIL PROTECTED]> wrote: > >[_array removeObject:obj]; Are you sure _array is valid and properly retained? Hamish ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

NSTask failing

2008-04-04 Thread Randall Meadows
I'm having problems with what should be a simple NSTask invocation: NSArray *args = [NSArray arrayWithObjects: @"-cf", [NSString stringWithFormat:@"\"[EMAIL PROTECTED]"", tarFilePath], [NSString stringWithFormat:@"\"[EMAIL PROTECTED]"", plistPath], nil]; tarTask = [NSTask launchedTask

Re: NSMutableArray removeObject: crash

2008-04-04 Thread Shawn Erickson
On Fri, Apr 4, 2008 at 1:08 PM, Kevin Wojniak <[EMAIL PROTECTED]> wrote: > I am getting a report of a crash with a stack trace ending like this: > > > > 0 libobjc.A.dylib 0x92d066f9 > objc_msgSend + 41 > > 1 com.apple.CoreFoundation0x96d4b720 -[NS

Re: Apple support incidents

2008-04-04 Thread Shawn Erickson
On Fri, Apr 4, 2008 at 12:48 PM, Stebel Wolfram <[EMAIL PROTECTED]> wrote: > Hi all, > > i wondered if somebody sells it's unused apple support incidents of adc > membership and just tried it on ebay. > Look there if you need cheap support incidents. Selling / trading incidents like that is brea

[moderator] Re: Apple support incidents

2008-04-04 Thread Scott Anguish
All Using cocoa-dev to sell items on ebay (or elsewhere) is inappropriate and will not be tolerated. Thanks Scott (moderator) On Apr 4, 2008, at 3:48 PM, Stebel Wolfram wrote: Hi all, i wondered if somebody sells it's unused apple support incidents of adc membership and just tried it o

NSMutableArray removeObject: crash

2008-04-04 Thread Kevin Wojniak
I am getting a report of a crash with a stack trace ending like this: 0 libobjc.A.dylib 0x92d066f9 objc_msgSend + 41 1 com.apple.CoreFoundation 0x96d4b720 -[NSMutableArray removeObject:] + 96 Generally, when there are specifics like this I can

Re: Apple support incidents

2008-04-04 Thread Dave Hersey
I didn't see those, but there are some great deals on ProDOS and Beagle Bros. software! Even a CP/M card for a steal! ; ) On Apr 4, 2008, at 3:48 PM, Stebel Wolfram wrote: Hi all, i wondered if somebody sells it's unused apple support incidents of adc membership and just tried it on eb

Apple support incidents

2008-04-04 Thread Stebel Wolfram
Hi all, i wondered if somebody sells it's unused apple support incidents of adc membership and just tried it on ebay. Look there if you need cheap support incidents. Wolfram ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not pos

Re: core data - beyond the simple example

2008-04-04 Thread I. Savant
On Fri, Apr 4, 2008 at 3:39 PM, Torsten Curdt <[EMAIL PROTECTED]> wrote: > OK ...so predicate filter I got working - sort of. I've bound the predicate > in the AppDelegate to the NSArrayController. When I start up the application > it filters just fine. > I've also got the "add" and "remove" actio

Re: core data - beyond the simple example

2008-04-04 Thread Torsten Curdt
OK ...so predicate filter I got working - sort of. I've bound the predicate in the AppDelegate to the NSArrayController. When I start up the application it filters just fine. I've also got the "add" and "remove" actions bound to buttons. But as soon as I call "add" the filtered objects re-app

NSRect for intertion point in NSTokenField (or NSTextField)

2008-04-04 Thread Justin Hawkwood
I'm working on making a NSTokenField inside of a NSScrollView work properly so that keying through the tokens adjusts the scroll view to keep the insertion point visible. I've subclassed NSTokenField and am catching the textViewDidChangeSelection: notification, but I don't know how to find

Re: Need for a creator code?

2008-04-04 Thread Matt Neuburg
On Thu, 03 Apr 2008 17:08:56 -0600, Scott Ribe <[EMAIL PROTECTED]> said: >> But having an app explicitly >> and automatically mark documents it saves as opening in itself can get >> frustrating for the user. > >How so? It seems the most reasonable default. I really don't see end users >saving a fil

[Moderator] Re: Need for a creator code?

2008-04-04 Thread Scott Anguish
OK, time to shut this one down folks. We've been down this road far too many times in the past. On Apr 4, 2008, at 2:06 PM, Scott Ribe wrote: When I save a JPEG file in an image editing app, and later open it, I expect it to open in Preview (or whatever my default image viewer is), not the

Re: Need for a creator code?

2008-04-04 Thread Scott Ribe
> When I save a JPEG file in an image editing app, and later open it, I > expect it to open in Preview (or whatever my default image viewer is), > not the image editing app. When I *create* an image in an image editing app and later open it, I expect it to open in the app with which I created it,

Re: core data - beyond the simple example

2008-04-04 Thread I. Savant
> I'll give that a go, thanks. May I ask why NSImageCell? Actually, that was an incomplete thought. Using an NSImageCell would negate the need to subclass anything. You could just drag one into the appropriate column in Interface Builder, then bind the column to your color property. You can the

Re: Need for a creator code?

2008-04-04 Thread John Siracusa
On Wed, Apr 2, 2008 at 3:46 PM, Jean-Daniel Dupas <[EMAIL PROTECTED]> wrote: > Anyway, even if it was possible to attach an UTI to a file, you would be > force to continue to use (nasty old fashioned) extensions for compatibility > with other OS. That's an argument for creating files with appropri

Re: core data - beyond the simple example

2008-04-04 Thread Torsten Curdt
Again me not being precise enough. So IIUC the NSTableView has NSTableColumns which have NSTableCells. I would have assumed that NSTableCells is also a view - which is why I talked about views. Right now the cell is a NSTextFieldCell. I somehow need to replace that with something bigger. Somet

Re: How to create process independent of current process AND that takes command line arguments?

2008-04-04 Thread Erik Buck
open a terminal or your favorite internet search and type "man nohup". ___ 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.

Re: Need for a creator code?

2008-04-04 Thread Ali Ozer
When I save a JPEG file in an image editing app, and later open it, I expect it to open in Preview (or whatever my default image viewer is), not the image editing app. This is especially true if someone else opens the image. Of course the expected behavior may depend on whether I am openin

Re: activate my application while dragging on other application window

2008-04-04 Thread Hamish Allan
On Thu, Apr 3, 2008 at 3:47 PM, Jens Alfke <[EMAIL PROTECTED]> wrote: > By "any other application window", do you mean a window belonging to a > _different_ application other than your own? There's no way to do that. As I > said, applications aren't allowed to mess with each other's windows. Is

Re: How to create process independent of current process AND that takes command line arguments?

2008-04-04 Thread Scott Ribe
> You want a process that is re-parented to be a child of process 1, > like when you put parentheses round a process to be backgrounded in > bash? Not mean, but the OP asked to launch a process that would outlive his app. (Or rather not me anymore, I figured out a horrible way of doing it, before

Re: How to create process independent of current process AND that takes command line arguments?

2008-04-04 Thread Hamish Allan
On Fri, Apr 4, 2008 at 5:35 PM, Scott Ribe <[EMAIL PROTECTED]> wrote: > But that gives you a child process, and there's no way that I found around > it without ugly hacks involving exec'ing a launchctl script... You want a process that is re-parented to be a child of process 1, like when you pu

Feedback-Directed Optimization problem

2008-04-04 Thread Michael Vannorsdel
I'm trying to generate a profile using the Feedback-Directed Optimization (-fprofile-generate) but when it gets to the linking stage it aborts with missing symbols _close$UNIX2003, _open$UNIX2003, _fcntl$UNIX2003. Any ideas what's causing this? I've used this option in the past many times

Re: NSDate and millis

2008-04-04 Thread Torsten Curdt
What's wrong? Nothing's "wrong"; you're just feeding mismatched data. "ReferenceDate" != "1970". Bah ...seems like I need some fresh air. Thanks! Sorry for the noise. cheers -- Torsten ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: NSDate and millis

2008-04-04 Thread Jens Alfke
On 4 Apr '08, at 8:41 AM, Torsten Curdt wrote: NSDate *date1 = [[NSDate alloc] initWithString:@"2008-05-01 00:00:00 +0200"]; NSLog(@"date1=%@, %lf", date1, [date1 timeIntervalSince1970]); Whatever default date formatter is being used doesn't support parsing milliseconds. You're l

Re: core data - beyond the simple example

2008-04-04 Thread I. Savant
> > Just think of something along the lines of > > > > @interface MyObject : NSObject > > { > > NSString *name; > > NSString *color; > > > > } > > In this case, as I said, just do it the easier way first so you > understand what's involved. Then if you want a 'subview as a ce

Re: Can we write Mac Servies like We write for Windows services

2008-04-04 Thread Jens Alfke
On 3 Apr '08, at 11:33 PM, Andrew Farmer wrote: The equivalents of Windows services are login items and startup items StartupItems are deprecated. Instead, you register daemons with launchd by putting a plist in /Library/LaunchDaemons/. A "login item" is a user-visible application that ge

Re: core data - beyond the simple example

2008-04-04 Thread I. Savant
> Hm ...OK ...I just know there is a collection of data objects stored > through core data that I can make accessible through the bindings. But the "devil is in the details" as they say. Ignoring (or "not caring") about this *will* get you into trouble. > Again me not being precise enough. So

Re: How to create process independent of current process AND that takes command line arguments?

2008-04-04 Thread Scott Ribe
> Even if NSTask doesn't have options for this, you can always call fork > and execv, which is what NSTask uses under the hood. But that gives you a child process, and there's no way that I found around it without ugly hacks involving exec'ing a launchctl script... -- Scott Ribe [EMAIL PROTECTED

Re: Autorelease question

2008-04-04 Thread Jens Alfke
On 3 Apr '08, at 5:50 PM, Adam Leonard wrote: If you are writing a tool that links with Foundation and not AppKit, an autorelease pool is NOT created for you. As you saw in your first example, you need to explicitly create and destroy one whenever you are dealing with Foundation objects in

Re: How to create process independent of current process AND that takes command line arguments?

2008-04-04 Thread Jens Alfke
On 3 Apr '08, at 11:47 PM, Chris Suter wrote: I don't think the docs. cover this issue. This is pretty fundamental Unix stuff. I'm sure the Unix-level docs (like man pages, or "Advanced Mac OS X Programming" or "Mac OS X Internals", or Unix textbooks) describe all the gory details of pr

Re: activate my application while dragging on other application window

2008-04-04 Thread Jens Alfke
On 3 Apr '08, at 11:03 PM, Apparao Mulpuri wrote: What type of Security issues are there in Windows appearance attributes change? Jens, Could you please explain your reply clearly? A window's pixels are accessible only to the process that owns the window, and to the window-server process

Re: core data - beyond the simple example

2008-04-04 Thread Torsten Curdt
On Apr 4, 2008, at 17:04, I. Savant wrote: I have got a little demo project. I have a NSTableView bound to a Core Data array of objects that where I can edit the name. So that was the first easy step. Here are a few more: A few points. First, you probably want (or meant) to bind a colum

Re: NSDate and millis

2008-04-04 Thread Randall Meadows
On Apr 4, 2008, at 9:41 AM, Torsten Curdt wrote: Hmmm ...doing this NSDate *date1 = [[NSDate alloc] initWithString:@"2008-05-01 00:00:00 +0200"]; NSLog(@"date1=%@, %lf", date1, [date1 timeIntervalSince1970]); and then using the output date1=2008-05-01 00:00:00 +0200, 1209592

Re: NSDate and millis

2008-04-04 Thread Scott Ribe
> What's wrong? Seriously, slow down, read the docs, look at what you're doing. You're taking timeIntervalSince1970 and passing it to initWithTimeIntervalSinceReferenceDate. That makes no sense. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice _

Re: NSOutlineView: to insert a checkbox column as the first column

2008-04-04 Thread Nick Rogers
hi, have figured out how to set the second column as outlineColumn and also put checkboxes in the first column by dragging NSButtonCell into the first column. That leaves the customizing the second column part. Regards, Nick On 04-Apr-08, at 8:39 PM, Nick Rogers wrote: Hi, I am writing th

Re: NSDate and millis

2008-04-04 Thread Torsten Curdt
Hmmm ...doing this NSDate *date1 = [[NSDate alloc] initWithString:@"2008-05-01 00:00:00 +0200"]; NSLog(@"date1=%@, %lf", date1, [date1 timeIntervalSince1970]); and then using the output date1=2008-05-01 00:00:00 +0200, 1209592800.00 like this NSDate* date2 = [[NSDate

enterFullScreenMode trouble

2008-04-04 Thread slasktrattenator
Hi, I'm having a small problem with NSView's enterFullScreenMode:withOptions: method. The windowed view handles keyboard events by overriding keyDown:, but once I enter fullscreen mode it stops receiving these events, all I get is a NSBeep. I have correctly set the new fullscreen window's delegate

NSOutlineView: to insert a checkbox column as the first column

2008-04-04 Thread Nick Rogers
Hi, I am writing the file browser part of my app now. If i try inserting the checkbox in IB, the indentation marker is always in the first column. Where as I want the first column to have only checkbox. And I want the indentation marker in the second column. Attached with the email is the look

Re: core data - beyond the simple example

2008-04-04 Thread I. Savant
> I have got a little demo project. I have a NSTableView bound to a Core Data > array of objects that where I can edit the name. So that was the first easy > step. Here are a few more: A few points. First, you probably want (or meant) to bind a column in your table view to some keypath. This

Re: NSDate and millis

2008-04-04 Thread Scott Ribe
> How can I create a NSDate based on time millis (since epoch). Could > not find any appropriate method. dateWithTimeIntervalSince1970 or dateWithTimeIntervalSinceReferenceDate -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice

NSDate and millis

2008-04-04 Thread Torsten Curdt
Guys, How can I create a NSDate based on time millis (since epoch). Could not find any appropriate method. Create a NSData passing in epoch as string and then add the time interval? There gotta be a better way. cheers -- Torsten ___ Cocoa-dev

core data - beyond the simple example

2008-04-04 Thread Torsten Curdt
Hey guys I am currently trying to get my head around core data. First impression - quite impressive. I've followed some tutorials to get started but somehow I am a bit lost when I want to do some more complex things. This might actually be more because of bindings than because of core dat

Re: NSPopupButton Cell in NSTableView

2008-04-04 Thread Steven Huey
Thomas, Take a look at the setDataCell: method of the NSTableColumn class. http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSTableColumn_Class/Reference/Reference.html#/ /apple_ref/doc/uid/2119-setDataCell_ You'll want to set the data cell of your column to

Re: NSCondition easter-egg hunt

2008-04-04 Thread Michael Tsai
On Apr 3, 2008, at 9:14 PM, Jack Repenning wrote: (1) When did NSCondition come to be? Cocoa Fundamentals Guide (as contained in my Leopard Xcode) has a Note: "The NSCondition class was introduced in Mac OS X v10.5. It is not available in earlier versions of the operating system." That wo

Re: NSAutoreleasePool causes crashes when empty?

2008-04-04 Thread Scott Ribe
> I notice when this is the case, calling [pool > release] causes a crash You've either put in an object that has already been released, or have put in a dangling pointer. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice _

Re: Main Thread UI and Detached Thread

2008-04-04 Thread Scott Ribe
> If that is the case then why does the progress bar get updated with the > correct value every time when I insert the sleep( 1 ) call? Sounds rather like you might not be executing everything on the thread you think you are. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-

Re: QTKit Capture Filtering

2008-04-04 Thread douglas a. welton
Bridger, Check out the documentation on QTCaptureDecopressedvideoOutput. If I read correctly, you should be able to use the CVImageBufferRef sent to the delegate method - captureOutput:didOutputVideoFrame:withSampleBuffer:fromConnection: as the source for your Core Image based processing.

Re: Can we write Mac Servies like We write for Windows services

2008-04-04 Thread Sherm Pendley
On Fri, Apr 4, 2008 at 8:00 AM, ∞ <[EMAIL PROTECTED]> wrote: > > Il giorno 04/apr/08, alle ore 12:52, Sherm Pendley ha scritto: > > > For the moral equivalent of adding your app to Windows' list of > > services, > > you'll want to create a preference pane: > > > No, that's the moral equivalent of

Job- Software Development Engineer Needed

2008-04-04 Thread Christy Hoffman
6 month contract in Cambridge MA For more information call Christy Hoffman at 781-530-3088 or [EMAIL PROTECTED] We are seeking a Software Development Engineer with experience development skills in Mac OS X environment, with in-depth knowledge and experience writing com

Re: Can we write Mac Servies like We write for Windows services

2008-04-04 Thread
Il giorno 04/apr/08, alle ore 12:52, Sherm Pendley ha scritto: For the moral equivalent of adding your app to Windows' list of services, you'll want to create a preference pane: No, that's the moral equivalent of adding an icon to Windows' Control Panel. The equivalent of a service, in tha

Re: Can we write Mac Servies like We write for Windows services

2008-04-04 Thread Sherm Pendley
On Fri, Apr 4, 2008 at 1:50 AM, Ghufran Ahamad <[EMAIL PROTECTED]> wrote: > > I need to write a service in Mac (like we write a Windows services for > PC). > This will automatically run as soon as start the Mac machine. I would appreciate if any one knows how to write a Service for Mac OS X. Ma

  1   2   >