Re: NSTask failing

2008-04-04 Thread Nir Soffer
Path], nil]; Try: NSArray *args = [NSArray arrayWithObjects:@"-cf", tarFilePath, plistPath, nil]; You don't need to quote anything you feed to NSTask. Your code is equivalent to this wrong shell script: tar -cf "\"tarFilePath\"" "\"plist

Re: NSAppleScript returning wrong error info

2008-03-18 Thread Nir Soffer
urn value, not the error dictionary. Best Regards, Nir Soffer ___ 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 Help

Re: Convert NSString to FSRef

2008-03-16 Thread Nir Soffer
lePath]; CFURLGetFSRef((CFURLRef)aURL, &output); Best Regards, Nir Soffer ___ 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: sorting large tables

2008-03-13 Thread Nir Soffer
r the pool helps since no convenience constructors, but tried anyway. Should be (if the pool is needed: int result = [rec1Field compare:rec2Field]; [pool release]; return result; } Best Regards, Nir Soffer ___ Cocoa-dev m

Re: NSTask and process group IDs

2008-03-11 Thread Nir Soffer
read from the pipe in the background. When the parent process die, the pipe will be closed and the child can quit. Best Regards, Nir Soffer ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: NSBundle wierdness in OCUnit target:

2008-03-10 Thread Nir Soffer
sts target, use: NSBundle *testBundle = [NSBundle bundleForClass:[SomeClass class]]; SomeClass is either in the test bundle or in the tested code. Best Regards, Nir Soffer ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: on launched with cocoa

2008-03-10 Thread Nir Soffer
ample: NSString *toolPath = [[NSBundle mainBundle] pathForResource:@"mytool" ofType:@""]; Best Regards, Nir Soffer ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Cocoa - Not loading any window at startup ...

2008-03-06 Thread Nir Soffer
user play with it. Watch them and see if you interface is confusing or not. Best Regards, Nir Soffer ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: Cocoa - Not loading any window at startup ...

2008-03-06 Thread Nir Soffer
se no other app work like this, and it will be very strange for the user when they have a dock icon that does nothing when clicked. You have to decide what type of app you want - regular app with a menu and a dock icon or background app that run without a dock or menu. Best Regards, Nir S

Re: Compilation: error on linking libcurl PPC 7.18 on my Cocoa project

2008-03-04 Thread Nir Soffer
ing list. Best Regards, Nir Soffer ___ 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 Help/Unsubscribe/Updat

Re: Relaunching an application

2008-03-03 Thread Nir Soffer
hing it. This sure does work, but it isn't a pretty solution. Seems pretty to me. You want use a separate process to make this work reliably. Best Regards, Nir Soffer ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not po

Re: Reading word at mouse pointer w/o Universal Access

2008-03-02 Thread Nir Soffer
is related discussion here: <http://switchersblog.com/ 2007/08/31/the-end-of-the-input-manager-and-pimping-mac-os-x.html> Another more evil alternative is APE <http://www.unsanity.org/> - it will let you access any app data. Best Regards, Nir Soffer

Invalid strings and related bugs (#5775749)

2008-03-01 Thread Nir Soffer
se]; printf("%s\n", [xmlString UTF8String]); [pool release]; return 0; } Best Regards, Nir Soffer ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Re: NSURLConnection failing [SOLVED]

2008-02-26 Thread Nir Soffer
e gets the -connectionDidFinishLoading: message I remove the connection object from the set. Works great now. Any object you create on the stack will be gone when the method is finished :-) You must keep a reference to the connection. Best Regards,

Re: Finding a relative date

2008-02-25 Thread Nir Soffer
as Oct 1582...)? Check NSCalendarDate -dayOfWeek and - dateByAddingYears:months:days:hours:minutes:seconds: Best Regards, Nir Soffer ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: NSInvocation question

2008-02-25 Thread Nir Soffer
yDocument instead of -invoke. The docs don't tell if -invokeWithTarget: will retain the target, so call -setTarget:nil after invoking to be sure you don't create a retain cycle. Best Regards, Nir Soffer ___ Cocoa-dev mailing list (C

Re: NSInvocation question

2008-02-25 Thread Nir Soffer
put an MVAction in the array, but I wonder if there's a better method. Another fix - when your document is closed, release the array holding the MVActions, which retain the invocation. This will break the retain cycle and allow your document to be released

Re: controllers, delegates, retain, release ...

2008-02-22 Thread Nir Soffer
e to add a delegate to the UI. The controller will set itself as the delegate when creating a UI object, and the UI will notify the delegate when its done. If there are other objects that may be interested in the UI completion event, you may like to use notifications instead. The controlle

Re: NSInvocation question

2008-02-21 Thread Nir Soffer
n't retain the target. Best Regards, Nir Soffer ___ 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 Help/Unsubsc

Re: fresh newbie question

2008-02-21 Thread Nir Soffer
rView; } - (IBAction)changeSelection:(id)sender; @end @implementation MyController - (IBAction)changeSelection:(id)sender; { // check sender state and update the view [view setColor:[NSColor redColor]]; [view setNeedsDisplay:YES]; } @end Warning: compiles in Mail.app

Re: PackageMaker Problem

2008-02-21 Thread Nir Soffer
the other :-) You need both unique package identifier and package name, or the package will remove the other one when installing. You better ask about installer issues in the installer-dev list: http://lists.apple.com/mailman/options/installer-dev/ Best Regards,