Setting a mounted volumes icon

2012-03-30 Thread CoGe - Tamas Nagy
Hey List! I trying to set the icon for a mounted volume in my application, without any success with NSWorkspace's setIcon method. Have anybody experience with this, or have an idea what should I try instead? Thanks! Tamas ___ Cocoa-dev mailing list

Re: Accessing array in thread safe way

2012-03-09 Thread CoGe - Tamas Nagy
;t use GCD, because GCD cannot guarantie operations will perform on the exact same thread - or at least in my understanding. On Mar 9, 2012, at 9:51 AM, Quincey Morris wrote: > On Mar 9, 2012, at 00:30 , CoGe - Tamas Nagy wrote: > >> Thanks Quiencey to pointing this out, however, what

Re: Accessing array in thread safe way

2012-03-09 Thread CoGe - Tamas Nagy
On Mar 8, 2012, at 11:57 PM, Quincey Morris wrote: > On Mar 8, 2012, at 14:29 , Charles Srstka wrote: > >> For those two examples, it seems like having the default accessor return an >> immutable array via copy would solve the issue. > > It wouldn't solve, e.g., the possibly inconsistency betw

Re: Accessing array in thread safe way

2012-03-08 Thread CoGe - Tamas Nagy
Thanks for the explanation, you are absolutely right! Tamas On Mar 8, 2012, at 9:32 PM, Charles Srstka wrote: > On Mar 8, 2012, at 2:18 PM, CoGe - Tamas Nagy wrote: > >> I should subclass NSMutableArray because I had a project which used >> NSMutableArray (calls) before,

Re: Accessing array in thread safe way

2012-03-08 Thread CoGe - Tamas Nagy
02 PM, Charles Srstka wrote: > On Mar 8, 2012, at 8:22 AM, CoGe - Tamas Nagy wrote: > >> Maybe this will helps you, here is my thread-safe subclass of >> NSMutableArray:http://code.google.com/p/cogeopensource/source/browse/trunk/CoGeOpenSource/CoGeThreadSafeMutableArray.m >>

Re: Accessing array in thread safe way

2012-03-08 Thread CoGe - Tamas Nagy
get right and > high-performance. > > In other scenarios, a fair readers-writers lock will be ideal. > > > On Thu, Mar 8, 2012 at 9:52 AM, Jan E. Schotsman wrote: > >> >> On Mar 8, 2012, at 3:22 PM, CoGe - Tamas Nagy wrote: >> >> Maybe this will hel

Re: Accessing array in thread safe way

2012-03-08 Thread CoGe - Tamas Nagy
On Mar 8, 2012, at 6:52 PM, Jan E. Schotsman wrote: > > On Mar 8, 2012, at 3:22 PM, CoGe - Tamas Nagy wrote: > >> Maybe this will helps you, here is my thread-safe subclass of >> NSMutableArray: >> http://code.google.com/p/cogeopensource/source/

Re: Accessing array in thread safe way

2012-03-08 Thread CoGe - Tamas Nagy
LGPL, as the page mentions it;) Sent from my iPhone On Mar 8, 2012, at 6:18 PM, Mike Abdullah wrote: On 8 Mar 2012, at 14:22, CoGe - Tamas Nagy wrote: Maybe this will helps you, here is my thread-safe subclass of NSMutableArray: http://code.google.com/p/cogeopensource/source/browse

Re: Accessing array in thread safe way

2012-03-08 Thread CoGe - Tamas Nagy
Maybe this will helps you, here is my thread-safe subclass of NSMutableArray: http://code.google.com/p/cogeopensource/source/browse/trunk/CoGeOpenSource/CoGeThreadSafeMutableArray.m Works well for my project. On Mar 8, 2012, at 11:22 AM, Jan E. Schotsman wrote: > Thanks for all the answers. >

Re: Logging in Xcode 4.2

2011-11-09 Thread CoGe - Tamas Nagy
No, got the same issue 5 minutes earlier. Just click on the Show Console With../Only button on the bottom. <> On Nov 9, 2011, at 10:48 PM, Graham Cox wrote: > I upgraded to Xcode 4.2 and NSLog output no longer shows up in the console > panel of Xcode (it's still viewable in the Console app). Is

Issue with IOHIDDeviceOpen and Exclusive Access

2011-11-04 Thread CoGe - Tamas Nagy
Hey list, i have a little problem with IOHIDDeviceOpen and Exclusive Access - when i call this method kIOHIDOptionsTypeSeizeDevice option, it returns kIOReturnSuccess, but i get no exlusive access. However, it works with the device manager, but i just need to have exclusive access for one speci