Window position updates on demand?

2015-12-17 Thread Cem Karan
the position of the window, but that doesn't work (the polling is happening, but it prints the same position continuously until dragging stops). So, how do I get the window to update where it actually, truly is at the moment I ask it? Thanks, Cem Karan

Re: Referencing struct fields in C

2011-05-30 Thread Cem Karan
From: Oleg Krupnov oleg.krup...@gmail.com Date: May 30, 2011 9:30:22 AM EDT To: Graham Cox graham@bigpond.com Cc: Cocoa-Dev List cocoa-dev@lists.apple.com Subject: Re: Referencing struct fields in C SNIP One thing that bothers me though. How the compiler will understand that the state

Re: Losing my memory - a caching problem?

2010-08-17 Thread Cem Karan
From: Stuart Rogers stuart.rog...@me.com Date: August 17, 2010 6:10:45 AM EDT To: cocoa-dev@lists.apple.com Subject: Losing my memory - a caching problem? I'm having enormous difficulty keeping tabs on memory usage in my current project. I'm happy that I'm not leaking anything - Build

Re: Losing my memory - a caching problem?

2010-08-17 Thread Cem Karan
On Aug 17, 2010, at 4:05 PM, Stuart Rogers wrote: On 17 Aug 2010, at 18:07, Ken Ferry wrote: On Tue, Aug 17, 2010 at 9:53 AM, Cem Karan cfkar...@gmail.com wrote: One dumb question; I see where you're putting images into an autorelease pool, but I don't see you setting up or tearing down

Re: Losing my memory - a caching problem?

2010-08-17 Thread Cem Karan
On Aug 17, 2010, at 5:20 PM, Stuart Rogers wrote: On 17 Aug 2010, at 21:36, Cem Karan wrote: On Aug 17, 2010, at 4:05 PM, Stuart Rogers wrote: NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; ... [pool release]; Have you tried using drain instead of release? That seems

Re: Losing my memory - a caching problem?

2010-08-17 Thread Cem Karan
On Aug 17, 2010, at 5:37 PM, Greg Parker wrote: On Aug 17, 2010, at 2:32 PM, Cem Karan wrote: Mmm, my question is, what about Apple's code? I'll be the first to admit, I don't know enough about what goes on under the hood, so what I'm about to say may be very, very wrong (anyone out

Re: Coding with VM limitation on the iPhone?

2009-08-18 Thread Cem Karan
to help you with different strategies. Thanks, Cem Karan ___ 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: singletons and autoreleased objects (Karan, Cem (Civ, ARL/CISD))

2009-05-15 Thread Cem Karan
mark my memory usage; I'll do that and retest. Thank you! Thanks, Cem Karan ___ 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

Re: singletons and autoreleased objects (Karan, Cem (Civ, ARL/CISD))

2009-05-13 Thread Cem Karan
Answering my own question: it had nothing to do with my singleton, and everything to do with over-releasing of objects that only showed up when I had multiple threads running at the same time. Please ignore the original question. Thanks, Cem Karan

Getting the value of GUI elements from non-main threads

2009-02-04 Thread Cem Karan
the analysis to a worker thread. The worker thread then directly queries the NSTextField via its stringValue method. Is this kosher? Thanks, Cem Karan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Getting the value of GUI elements from non-main threads

2009-02-04 Thread Cem Karan
On Feb 4, 2009, at 4:10 PM, Ken Thomases wrote: On Feb 4, 2009, at 2:47 PM, Cem Karan wrote: I know that we can only modify GUI elements from the main thread, but can we get the values for objects from other than the main thread? E.g., assume I have an editable NSTextField, and I have