Window position updates on demand?

2015-12-17 Thread Cem Karan
ocoa and not GLFW. I tried polling 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

Re: Referencing struct fields in C

2011-05-30 Thread Cem Karan
> From: Oleg Krupnov > Date: May 30, 2011 9:30:22 AM EDT > To: Graham Cox > Cc: Cocoa-Dev List > Subject: Re: Referencing struct fields in C <> > One thing that bothers me though. How the compiler will understand > that the state is loop-invariant? Should I necessarily declare the > checked bo

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 >

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];

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 wrote: >> >>> One dumb question; I see where you're putting images into an autorelease >>> pool, but I don'

Re: Losing my memory - a caching problem?

2010-08-17 Thread Cem Karan
> From: Stuart Rogers > 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 & Analyse reports

Re: Coding with VM limitation on the iPhone?

2009-08-18 Thread Cem Karan
ight be able 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.

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

2009-05-15 Thread Cem Karan
ink about the fact that I could 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 mod

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

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 a

Getting the value of GUI elements from non-main threads

2009-02-04 Thread Cem Karan
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 or