Re: Cocoa Drawing vs. Quartz Drawing

2011-01-23 Thread Uli Kusterer
On 23.01.11 01:20, Todd Heberlein wrote: In a Cocoa app is there a preference for using the Cocoa or the Quartz drawing routines? Depends. There are some things you can only do using CGxxx calls, but the NSxxx calls are much more convenient to use. Also, at least originally, iOS only had th

Re: Undo in conjunction with core data

2011-01-23 Thread Kenneth Baxter
On 23 Jan, 2011,at 12:45 PM, Dave Fernandes wrote: Looking back at my code, I see that I just use the KVO message to know that something changed. I then re-traverse the data model to update the view. (Not the most scalable technique.)   I thought I would try that same approach. There is somet

NSTrackingArea mouse-in & mouse-out on menu bar stops to function on user switch.

2011-01-23 Thread Mohsan Khan
I'm using a NSTrackingArea for tracking mouse-in & mouse-out on the menu bar area, this works just as expected. But I've discovered that if I switch to the guest account and run my application the tracking for mouse-in & mouse-out doesn't work, but only if I click in that area, then will the mo

Re: Problem with garbage collection in server application

2011-01-23 Thread Rick Hoge
Thanks Scott, On 2011-01-22, at 11:58 PM, Scott Ribe wrote: > You might try something like usleep(1000) just to see what happens. You might > not need any real delay; you might just need to yield... Tried the above, but the GC version goes back to ballooning memory usage and eventual crash.

Re: Problem with garbage collection in server application

2011-01-23 Thread Rick Hoge
On 2011-01-23, at 12:04 AM, Dave Keck wrote: ... >> > I would use gdb's "info gc-roots 0x" command to determine what > strong references exist to the objects that are placed in your array. > Instruments may also have some related functionality. Thanks - I was focusing on Instruments, a

Re: Problem with garbage collection in server application

2011-01-23 Thread Rick Hoge
Hi Quincy, Thanks so much for the detailed reply. On 2011-01-23, at 12:28 AM, Quincey Morris wrote: >> [...] > > You *cannot* rely on GC to satisfy your timing requirements for releasing > resources used by your application. You can't even rely rely on GC to release > memory at all, in any d

Re: Problem with garbage collection in server application

2011-01-23 Thread Rick Hoge
Sorry - I forgot to mention that I am indeed wrapping my code in its own autorelease pool. This should ensure that the only retain count remaining is from intentional retains by other objects that need to reference my datasets. Rick On 2011-01-23, at 12:59 AM, Dave Keck wrote: > The autorele

Re: how to change NSButton color

2011-01-23 Thread Dianne
I want to change the buttons color from the normal gray to dark gray to indicate whether the button is assigned to other values other than its default value. Is there any other or best way to do this? what you can suggest? Thanks, Yani From: Kyle Sluder T

iOS: Settings & Security

2011-01-23 Thread Phillip Mills
My application has a settings bundle with eight different things that can be modified. There are three of them that -- in a perfect world -- should be changed only by the person who has the device passcode. The perfect solution would be to have them behave the same as "Reestrictions" in the ge

Re: how to change NSButton color

2011-01-23 Thread John Joyce
On Jan 23, 2011, at 8:14 AM, Dianne wrote: > I want to change the buttons color from the normal gray to dark gray to > indicate > whether the button is assigned to other values other than its default value. > > Is there any other or best way to do this? what you can suggest? > Thanks, > Yani

Re: iOS: Settings & Security

2011-01-23 Thread John Joyce
On Jan 23, 2011, at 8:25 AM, Phillip Mills wrote: > My application has a settings bundle with eight different things that can be > modified. There are three of them that -- in a perfect world -- should be > changed only by the person who has the device passcode. The perfect solution > would

Re: iOS: Settings & Security

2011-01-23 Thread Phillip Mills
On 2011-01-23, at 10:57 AM, John Joyce wrote: > I can see a scenario where you want an app for classroom use by students that > is configurable only by the instructor but usable by all. Thanks for the profile reference, but my situation is more about a single device that might sometimes be used

Re: Undo in conjunction with core data

2011-01-23 Thread Jerry Krinock
On 2011 Jan 23, at 00:56, Kenneth Baxter wrote: > However, if I add a child and then undo the addition, the array controller > has the child removed, but it is still there in the children, and all its > data has gone. It has not been turned into a fault, and is not marked as > deleted. I have

Re: NSTrackingArea mouse-in & mouse-out on menu bar stops to function on user switch.

2011-01-23 Thread Mohsan Khan
I found the issue, it lies in with using SteerMouse (current version) Ver 4.0.3 (Jan 7, 2011). Somehow this mouse configuration app causes the mouse over & mouse out to stop functioning globally in Mac OS X 10.6.6 (current version) when switching a user, or when calling the Login Window. Just a

Re: Undo in conjunction with core data

2011-01-23 Thread Dave Fernandes
On 2011-01-23, at 3:56 AM, Kenneth Baxter wrote: > On 23 Jan, 2011,at 12:45 PM, Dave Fernandes > wrote: > >> >> Looking back at my code, I see that I just use the KVO message to know that >> something changed. I then re-traverse the data model to update the view. >> (Not the most scalable t

Re: Problem with garbage collection in server application

2011-01-23 Thread Rick Hoge
On 2011-01-23, at 12:59 AM, Dave Keck wrote: > On the other > hand, if I understood you correctly in that you're seeing a 10% > speedup when using GC, then perhaps that would warrant the extra > effort. On the other-other-hand, it sounds like you might be > optimizing early. Sorry the comment ab

Re: Problem with garbage collection in server application [solved]

2011-01-23 Thread Rick Hoge
Hi Quincey, The way you broke this down was very helpful, and it turned out to be a combination of two things you alluded to. I'd been on the right track that it had to do with NIB objects, and thinking about it as you laid out helped identify the problem. On 2011-01-23, at 12:28 AM, Quincey

Re: starting with Cocoa!

2011-01-23 Thread Jimmy
Wow this book looks awesome. I can't believe how thorough. Sent from my iPhone On Jan 22, 2011, at 3:41 PM, Matt Neuburg wrote: > On Fri, 21 Jan 2011 14:55:38 +0800, Janos Syd Nepthali Pao > said: >> >> I'd like to ask for your hints, advice and words of wisdom --anything >> you can share

Re: Community link blog

2011-01-23 Thread Lars Herbach
Hey Mauricio, did you take a look at http://www.planetcocoa.org/ ? (Sorry for the duplicate, did not hit the "Reply all" button ;) Best regards, Lars Herbach Am 21.01.2011 um 19:51 schrieb Maurício Linhares: > Hi guys, > > I've been searching around but could not find a community link blog > f

Re: starting with Cocoa!

2011-01-23 Thread Simone D'Amico
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il giorno 22/gen/2011, alle ore 21.41, Matt Neuburg ha scritto: > This is probably a reasonable moment for me to reveal that I've been writing > a Cocoa / iOS programming book for O'Reilly since last May. I buy this in book on early release and it

Book: Frameworks in depth

2011-01-23 Thread Lars Herbach
Hi list, currently I'm learning Objective-C and Cocoa using the 'Cocoa and Objective-C: Up and Running' book by Scott Stevenson ( http://oreilly.com/catalog/9780596804794/ ). It's a beginners guide and after that, I'd like to go further learning more about the frameworks, especially Cocoa, Core

Opencv and AVFoundation

2011-01-23 Thread Rikza Azriyan
Hi all, anyone can help me.. I want to develop an video image processing iOS apps using opencv library. It processed frame per frame From the video captured image. I ever read that i can used AVFoundation on it, but i dont really understand how to use it. I have read AVFoundation Programming Gu

Re: starting with Cocoa!

2011-01-23 Thread Rita
I also recommend "Developing Apps for IOS" series of video recordings from Stanford University (by Paul Hegarty) available through iTunes U at iTunes (in SD and HD). I found it very useful along with Apple's online library of documents at developer.apple.com which is very rich in content and the