Re: [NSButton state] must by used from the main thread

2017-09-26 Thread Tamas Nagy
Makes sense, thanks Quincey. Best, Tamas > On 2017. Sep 26., at 10:35, Quincey Morris > wrote: > > On Sep 26, 2017, at 01:16 , Tamas Nagy <mailto:tamas.lov.n...@gmail.com>> wrote: >> >> but “state” of the NSButton is a NSInteger property, so that should be s

[NSButton state] must by used from the main thread

2017-09-26 Thread Tamas Nagy
Hi there, XCode 9’s new main thread checker feature found the possible issue mentioned on the subject line. Indeed there is a background thread that check’s the state of an NSButton subclass, but I’m wondering if this is a real issue - I understand the problems with changing the UI from a backg

Re: Turn off Window Snapping on Sierra

2017-01-08 Thread Tamas Nagy
Thanks, that works, but only if the NSWindow’s isMovableByWindowBackground is set to NO. > On 2017. Jan 8., at 10:08, dangerwillrobinsondan...@gmail.com wrote: > > IIRC use NSBorderlessWindowMask. > > > Sent from my iPhone > >> On Jan 8, 2017, at 17:55, T

Turn off Window Snapping on Sierra

2017-01-08 Thread Tamas Nagy
Hi, is there any way to disable the window snapping feature introduced in macOS Sierra in an NSWindow subclass? I have an own snapping-like feature in my NSwindow subclass which works a little bit different than Apple’s implementation and the two are interfering on Sierra. Thanks! Best, Tamas

Re: NSWindow not redrawing subviews

2017-01-07 Thread Tamas Nagy
Makes sense, thanks Ken! > On 2017. Jan 7., at 8:55, Ken Thomases wrote: > > On Jan 7, 2017, at 12:59 AM, Tamas Nagy wrote: >> >> This is a video mixer app. There are multiple windows for controlling >> layers, effects, etc. Rendering is done on a CVDisplayLink thr

Re: NSWindow not redrawing subviews

2017-01-06 Thread Tamas Nagy
Hi Ken, > > You say you're calling -setNeedsDisplay: on the main thread, but other than > that, what do you mean by "multi-thread, multi-window app"? Are you doing > _any_ GUI manipulation from background threads? If so, what? This is a video mixer app. There are multiple windows for control

NSWindow not redrawing subviews

2017-01-06 Thread Tamas Nagy
Hi List, I ran into an issues with a multi-thread, multi-window app, where one or more windows stop displaying after a while. This happens rarely and on 10.10.5 - at least I was not able to reproduce the problem anywhere else. And by saying a window stop displaying I mean there are subviews tha

Re: How to get an undeprecated FSRef

2016-11-01 Thread Tamas Nagy
Hi there, > > What I really want to do: Create custom icons for folders programmatically. > you can use NSWorkspace for that. Check out: https://developer.apple.com/reference/appkit/nsworkspace/1529882-seticon?language=objc ___ Cocoa-dev mailing

Re: CFBridgingRetain does not leak memory

2016-04-15 Thread Tamas Nagy
Ohh, I see now, thank you so much Ken! Best, Tamas > On 15 Apr 2016, at 11:57, Ken Thomases wrote: > > On Apr 15, 2016, at 4:34 AM, Tamas Nagy wrote: >> >> I have an ongoing project where I’m using a CFMessagePort some sort of IPC >> communication. The C

CFBridgingRetain does not leak memory

2016-04-15 Thread Tamas Nagy
Hello, I have an ongoing project where I’m using a CFMessagePort some sort of IPC communication. The CFMessagePort has a callback, something like this: static CFDataRef Callback(CFMessagePortRef port, SInt32 messageID, CFDataRef data,

Re: WebViews and the Java Plugin

2016-02-05 Thread Tamas Nagy
Hi Sandor, you might need to enable the Java plugin on 10.10: https://developer.apple.com/library/mac/documentation/Cocoa/Reference/WebKit/Classes/WebPreferences_Class/index.html#//apple_ref/occ/instp/WebPreferences/javaEnabled

Re: licence key validation method

2015-01-12 Thread Tamas Nagy
> > Of course, I could have missed something, and if anyone here is using > FastSpring or similar (eSellerate, Kagi) and can confirm otherwise, I'd be > both relieved and grateful to get your advice. I must admit when I started > this thread, I did so in the hope that someone else on the list

Re: licence key validation method

2015-01-12 Thread Tamas Nagy
> > If you use AquaticPrime, unfortunately, it does not generate standard > signatures. It manually hashes and then encrypts using the private key. This > sounds like a normal signature, but it is missing some information stored in > standard PKCS #1 v2.0 signatures. This means that Security.fr

Re: codesign v2 problem on 10.8.5 and earlier

2014-11-24 Thread Tamas Nagy
Hi, it seems the issue is related to a 3rd party framework I am using. Tamas > On 24 Nov 2014, at 08:32, Tamas Nagy wrote: > > Hi, > > switched to codesign v2 to match the new requirements on 10.9.5 and 10.10. > The sign works well on 10.9.5 and later, but on 10.8.

codesign v2 problem on 10.8.5 and earlier

2014-11-23 Thread Tamas Nagy
Hi, switched to codesign v2 to match the new requirements on 10.9.5 and 10.10. The sign works well on 10.9.5 and later, but on 10.8.5 (with the latest security update installed) the verify process (codesign —verify —deep —verbose=2 …) reports “bundle format unrecognized, invalid or unsuitable”,

Re: Background CIFilter processing?

2014-11-04 Thread Tamas Nagy
Great, you’re welcome! Tamas > On 05 Nov 2014, at 05:55, Carl Hoefs wrote: > > Thanks for the pointers, Tamas! Got it working by using [NSCIImageRep > imageRepWithCIImage:] and then [NSImage addRepresentation:] > > -Carl > > On Nov 3, 2014, at 2:18 PM, Tamas N

Re: Background CIFilter processing?

2014-11-03 Thread Tamas Nagy
n tell, that patch needs to render somewhere in > real time or it outputs nothing. But my application is only for processing > image data in memory. > > -Carl > > On Nov 3, 2014, at 1:37 PM, Tamas Nagy wrote: > >> No, CIFIlters should work fine in background processes.

Re: Background CIFilter processing?

2014-11-03 Thread Tamas Nagy
No, CIFIlters should work fine in background processes. > On 03 Nov 2014, at 21:29, Carl Hoefs wrote: > > I’m developing a background daemon server process (Cocoa, OSX 10.10) that > will process (analyze, segment, classify) an image sent to it on demand, and > then send the processed image bac

Re: hueComponent not valid for the NSColor

2014-11-01 Thread Tamas Nagy
> > Guess my real question is: > > Why is "whiteColor" not in RGB while "redColor" is? > Just because is doesn't have to? Exactly. Why to use 3 components when you could use only 1 to describe the same value? ___ Cocoa-dev mailing list (Cocoa-dev

Re: hueComponent not valid for the NSColor

2014-11-01 Thread Tamas Nagy
Hi, [NSColor whiteColor] produced a color which using the NSCalibratedWhiteColorSpace, and “hue” component is not exists in a "white-only colorspace”. In other words, that is not an RGB color space, that color space only contains white - but hue cannot be interpreted there. Tamas > On 01 Nov

CGCMSUtilsGetICCProfileDescription is obsolote

2014-01-27 Thread Tamas Nagy
Hi, with one of my apps I recently see the following message in the logs, especially on 10.9.1: The function `CGCMSUtilsGetICCProfileDescription' is obsolete and will be removed in an upcoming update. Unfortunately, this application, or a library it uses, is using this obsolete function, and i

Re: NSMutableDictionary of NSMutableDictionary copy

2014-01-16 Thread Tamas Nagy
Thanks! So, better to build a new dictionary with copy on each inner dictionary to achive a real non-mutable dictionary then. On 16 Jan 2014, at 08:55, Jerry Krinock wrote: > > On 2014 Jan 15, at 23:34, Tamas Nagy wrote: > >> does a copy of the dictionary make the whole

NSMutableDictionary of NSMutableDictionary copy

2014-01-15 Thread Tamas Nagy
Hi, probably an easy thing, but cannot find an answer till now: I have an NSMutableDictionary which contains a couple of other NSMutableDictionaries, and those probably have other NSMutableDictionaries, and I am thinking about, does a copy of the dictionary make the whole dictionary non-mutable

Re: Keeping Scroll Views in Sync

2013-10-09 Thread Tamas Nagy
Hi, in one of my apps I'm doing this too, but without any problems. I'm using scrollToPoint: method instead. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(viewScrolled:)

Re: How to convert an NSString to

2013-08-07 Thread Tamas Nagy
Or if you just want to convert the spaces: string = [@"Ich möchte am Wettbewerb teilnehmen" stringByReplacingOccurrencesOfString:@" " withString:@"%20"]; On Aug 7, 2013, at 9:19 AM, Igor Elland wrote: > Hi, > > Have you tried: > > [@"Ich möchte am Wettbewerb teilnehmen" > stringByAdding

Re: Saving NSDictionary, Enumeration error

2013-05-07 Thread Tamas Nagy
Hmm, yes, its possible saveData method returns an NSDictionary which contains NSMutableDictionaries if I missed something in my code. Thanks, I'll check it out. On May 8, 2013, at 12:13 AM, Jens Alfke wrote: > > On May 7, 2013, at 2:32 PM, Tamas Nagy wrote: > >> -(N

Re: Saving NSDictionary, Enumeration error

2013-05-07 Thread Tamas Nagy
Thanks Scott, good point. I'll modify the saveData method to collect the data on the background thread. On May 7, 2013, at 11:39 PM, Scott Ribe wrote: > On May 7, 2013, at 3:32 PM, Tamas Nagy wrote: > >> so does not this made the dictionary already read-only? > > And

Re: Saving NSDictionary, Enumeration error

2013-05-07 Thread Tamas Nagy
dictionaryWithDictionary: [[dict copy] autorelease]]; so does not this made the dictionary already read-only? On May 7, 2013, at 8:06 PM, Jens Alfke wrote: > > On May 7, 2013, at 7:04 AM, Tamas Nagy wrote: > >> The data collecting and save happening on the main thread,

Re: Saving NSDictionary, Enumeration error

2013-05-07 Thread Tamas Nagy
On May 7, 2013, at 14:39, Tamas Nagy wrote: > >> Hi, >> >> one of my users recently got an error when trying to save. My application is >> not document based, and I'm collecting the data to NSDictionaries, then save >> it with writeToFile: method. I nev

Saving NSDictionary, Enumeration error

2013-05-07 Thread Tamas Nagy
Hi, one of my users recently got an error when trying to save. My application is not document based, and I'm collecting the data to NSDictionaries, then save it with writeToFile: method. I never can reproduce the issue, so hard to find what is the problem. I'm collection the data with methods

Re: NSBezierPath stroke width on retina/nonretina

2013-04-26 Thread Tamas Nagy
Thanks for the tip! I was using integral coordinates without fractions, adding _newframe = NSInsetRect(_newframe, 0.5f, 0.5f); fixed the issue! Thanks! Tamas On Apr 26, 2013, at 5:28 PM, Fritz Anderson wrote: > On 26 Apr 2013, at 9:51 AM, Tamas Nagy wrote: > >> Hi, >>

NSBezierPath stroke width on retina/nonretina

2013-04-26 Thread Tamas Nagy
Hi, found a really weird issue with some very basic drawing, and have no idea whats going wrong (or what I missed:)). Basically I've a subclass of NSButton and NSButtonCell with some basic custom drawing. I do a 1px width stroke after all around the button, which is looks cool on my computer ha

Re: Snapping windows while moving

2013-03-13 Thread Tamas Nagy
Exactly. On Mar 13, 2013, at 1:56 PM, Steve Mills wrote: > And you're seeing that getting called for every single movement of the mouse? > > -- > Steve Mills > office: 952-818-3871 > home: 952-401-6255 > cell: 612-803-6157 > > On Mar 13, 2013, at 00:11:50,

Re: Snapping windows while moving

2013-03-13 Thread Tamas Nagy
I'm using this: //http://www.cocoadev.com/index.pl?MagneticWindows - (void)windowDidMove:(NSNotification *)notification { NSEnumerator *e; NSWindow *theWindow; id edgeObject; NSArray *frames = NSApp windows] copy] autorelease] arrayByAddingObjectsFromArray:[N

Re: NSTextfield focus in contextual menu

2013-01-17 Thread Tamas Nagy
013, at 11:38 AM, Tamas Nagy wrote: >> Hi List, >> >> I have an application (10.6>) where are have a contextual menu with an >> NSTextfield. What I'm trying is when I displaying the menu with [NSMenu >> popupContextual…] making the NSTextfield focused,

Re: NSTextfield focus in contextual menu

2013-01-17 Thread Tamas Nagy
Thanks for the info and the tips Kyle! Tamas On Jan 17, 2013, at 8:54 PM, Kyle Sluder wrote: > On Thu, Jan 17, 2013, at 11:38 AM, Tamas Nagy wrote: >> Hi List, >> >> I have an application (10.6>) where are have a contextual menu with an >> NSTextfield. What I

NSTextfield focus in contextual menu

2013-01-17 Thread Tamas Nagy
Hi List, I have an application (10.6>) where are have a contextual menu with an NSTextfield. What I'm trying is when I displaying the menu with [NSMenu popupContextual…] making the NSTextfield focused, but without luck. I tried setting [mytextfield becomeFirstResponder] and [mytestfield select

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Tamas Nagy
Yep, its a design bug for sure, which I should and will fix. On Dec 17, 2012, at 11:14 AM, Tom Davie wrote: > > On 17 Dec 2012, at 10:11, Tamas Nagy wrote: > >> There is a chance in the application where only one, borderless window >> displayed on the secondary

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Tamas Nagy
There is a chance in the application where only one, borderless window displayed on the secondary screen, so there are possible circumstances where displaying a window-modal panel not quite useful. On Dec 17, 2012, at 10:50 AM, Tom Davie wrote: > > On 17 Dec 2012, at 09:42, Tama

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Tamas Nagy
vie wrote: > > On 17 Dec 2012, at 09:26, Tamas Nagy wrote: > >> I really appreciate your continuous curiosity guys, but we just getting >> off-topic :) >> >> BTW, its a realtime graphics application, where UI events should not >> blocking renderin

Re: NSOpenPanel runModal on a dispatch

2012-12-17 Thread Tamas Nagy
it into some kind of queue - blocks the rendering/displaying the current video. On Dec 17, 2012, at 10:06 AM, Tom Davie wrote: > > On 17 Dec 2012, at 05:58, Tamas Nagy wrote: > >> It's a live video app, where rendering happening on a CVDisplayLink thread, >> so th

Re: NSOpenPanel runModal on a dispatch

2012-12-16 Thread Tamas Nagy
2, at 6:46 AM, Kyle Sluder wrote: > On Sun, Dec 16, 2012, at 09:43 PM, Tamas Nagy wrote: >> Thanks Kyle. I know about beginWithCompletionHandler: , but I really need >> a modal window at that point my application opens the open panel. > > I have to ask, why? > > If

Re: NSOpenPanel runModal on a dispatch

2012-12-16 Thread Tamas Nagy
Thanks Kyle. I know about beginWithCompletionHandler: , but I really need a modal window at that point my application opens the open panel. On Dec 16, 2012, at 9:39 PM, Kyle Sluder wrote: > On Sun, Dec 16, 2012, at 12:04 PM, Tamas Nagy wrote: >> Thanks for the approach

Re: NSOpenPanel runModal on a dispatch

2012-12-16 Thread Tamas Nagy
until the main queue is able to run another block, which won't > happen until your block finishes. > > You are very much blocking the main queue. > > Thanks > > Tom Davie > > On 16 Dec 2012, at 20:04, Tamas Nagy wrote: > >> Thanks for the approach Kyle, but

Re: NSOpenPanel runModal on a dispatch

2012-12-16 Thread Tamas Nagy
Thanks for the approach Kyle, but dispatch_async performs asynchronously, so it should not block the main thread. I fallback to performSelectorOnMainThread: method in my app, but the dispatch way is a bit straightforward in my opinion. I'll fill a rdar on this. On Dec 16, 2012, at 8:39 PM,

Re: NSOpenPanel runModal on a dispatch

2012-12-16 Thread Tamas Nagy
Unfortunately that doesn't help. I think the issue should be related to dispatches, because it won't happen if I just call performSelectorOnMainThread... On Dec 16, 2012, at 6:05 PM, Mike Abdullah wrote: > > On 16 Dec 2012, at 10:45, Tamas Nagy wrote: > >> Hey, >

Re: NSOpenPanel runModal on a dispatch

2012-12-16 Thread Tamas Nagy
the method with performSelectorOnMainThread… instead of dispatching, everything works fine. Maybe I found a bug. On Dec 16, 2012, at 4:32 PM, Tom Davie wrote: > > On 16 Dec 2012, at 10:45, Tamas Nagy wrote: > >> Hey, >> >> I'm trying to display an NSOpenPan

NSOpenPanel runModal on a dispatch

2012-12-16 Thread Tamas Nagy
Hey, I'm trying to display an NSOpenPanel on a dispatch, with half-luck. The panel displays, but no files going to be displayed - the circle just spinning on the bottom-left corner. Anyone have an idea what going wrong? Thanks, Tamas dispatch_async(dispatch_get_main_queue(), ^{

Re: Getting local IP of Wi-Fi device

2012-09-12 Thread Tamas Nagy
Thanks, this looks promising! On Sep 12, 2012, at 4:39 PM, Keary Suska wrote: > On Sep 12, 2012, at 12:56 AM, Tamas Nagy wrote: > >> I'm looking for a way to get the IP address of the Wi-Fi device. For some >> reason, [NSHost currentHost]… gives me something like a MAC

Re: Getting local IP of Wi-Fi device

2012-09-12 Thread Tamas Nagy
NSHost addresses gives me an array with only one object, which contains the IPv6 address. 2012/9/12 Kyle Sluder > On Sep 11, 2012, at 11:56 PM, Tamas Nagy wrote: > > > Hello List, > > > > I'm looking for a way to get the IP address of the Wi-Fi device. For >

Re: Getting local IP of Wi-Fi device

2012-09-12 Thread Tamas Nagy
Thanks, it seems to be my first met of an IPv6 address. :) 2012/9/12 Markus Soelter > Hi tamas > [[nshost currenthost] address] should either return an IPv4 or an IPv6 > address (you probably saw an IPv6) > > Von unterwegs gesendet > > > Am 12.09.2012 um 08:58 schrieb

Getting local IP of Wi-Fi device

2012-09-11 Thread Tamas Nagy
Hello List, I'm looking for a way to get the IP address of the Wi-Fi device. For some reason, [NSHost currentHost]… gives me something like a MAC address, instead of an IP on 10.8. Thanks, Tamas ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Drag and drop issue - CoreDragGetMouseLocation

2012-07-17 Thread Tamas Nagy
Hello List, I have an NSMatrix subclass, where I can drag and drop files from Finder. It works well in the most of the times, but sometimes I found it not working. The draggingEntered method never called, and I see the following error logged: Error in CoreDragGetMouseLocation: -1850 I don't fi

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
__ > > 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/Update your Subscription: &

Re: Logging in Xcode 4.2

2011-11-09 Thread CoGe - Tamas Nagy
comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/info%40cogevj.hu > > This email sent to i...@cogevj.hu Tamas Nagy -

Issue with IOHIDDeviceOpen and Exclusive Access

2011-11-04 Thread CoGe - Tamas Nagy
specific device. I followed up the steps of TN2187: http://developer.apple.com/library/mac/#technotes/tn2187/_index.html Is this a bug? If it, is there a workaround with it? I'm on 10.6.8 yet. Thanks a lot, Tamas Nagy - CoGe VJ Software http://cogevj.hu i...@coge