UI refresh in background thread while [NSTask waitUntilExit]

2011-04-26 Thread Vera Tkachenko
Hello, In my app I need to determine if some app if properly codesigned. To do this I just invoke "/usr/bin/codesign" and analyse return value. To invoke it I use NSTask and launch it in background thread. Everything works fine excepts strange crash I get sometimes from our customers. While NST

Re: isDeletableFileAtPath: returns YES for locked files???

2011-04-14 Thread Vera Tkachenko
d and try to remove it again. But I agree, isDeletableFileAtPath: behavior is incorrect in this case. -- Thanks, Vera Tkachenko Developer @macpaw___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

confstr + [NSFileManager stringWithFileSystemRepresentation:length:] crash on Leopard

2010-08-04 Thread Vera Tkachenko
Hello, in my application I need to obtain system cache directory (not ~/Library/Caches). To perform this I use code "borrowed" from WebKit (that why I think it's correct :) ) char cacheDirectory[MAXPATHLEN]; size_t cacheDirectoryLen = confstr(_CS_DARWIN_USER_CACHE_DIR, cacheDirectory, MAXPATHL

Creating of "Open with" menu like in Finder

2010-07-27 Thread Vera Tkachenko
Hello, I want to build exactly the same menu as Finder's 'Open With' menu. Is there an easy way to do this instead of creating this menu manually using LaunchServices? Thanks, Vera Tkachenko___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pleas

AuthorizationCreate return code -67049

2009-12-23 Thread Vera Tkachenko
Hello everyone! In my application I need to execute command with privileges using AuthorizationExecuteWithPrivileges. To obtain authorization reference from system I use the following code const AuthorizationRights* kNoRightsSpecified = NULL; OSStatus err = Author

Re: Can't trap uncaught exceptions on Snow Leopard

2009-12-17 Thread Vera Tkachenko
can take a look at this project for examples of source code - http://github.com/tcurdt/feedbackreporter Thanks, Vera Tkachenko ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Strange problem of first access to variable

2009-01-07 Thread Vera Tkachenko
Sorry for unnecessary noise - problem was caused by release mode specific problem quite uncorrelated to this issue. -- With regards, Vera Tkachenko [v...@tkachenko.kiev.ua] [ICQ#230923300] [web http://vera.org.ua] ___ Cocoa-dev mailing list

Re: Strange problem of first access to variable

2009-01-07 Thread Vera Tkachenko
ed to processFiles is obtained using [filesController selectedObjects], where filesController is of type NSArrayController. 7 Січ 2009, в 15:05, Graham Cox написал(а): On 7 Jan 2009, at 11:58 pm, Vera Tkachenko wrote: Could you point me where to find the answer - smth with incorrect "files

Strange problem of first access to variable

2009-01-07 Thread Vera Tkachenko
7;m sure, that the answer should be very simple... cause the defect is very strange :) -- With regards, Vera Tkachenko [v...@tkachenko.kiev.ua] [ICQ#230923300] [web http://vera.org.ua] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Archiving NSError

2008-11-16 Thread Vera Tkachenko
t placing error into dict it work's ok. What am I doing wrong? -- With regards, Vera Tkachenko [ICQ#230923300] [web http://vera.org.ua] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comment