Re: starting with Cocoa!

2011-01-21 Thread Conrad Shultz
Janos Syd Nepthali Pao wrote: > Hi all! > > I'm glad to find this mailing list. I'm starting with Cocoa (side by > side with iOS development), i wanted to learn software development (this > totally rocks!). > > I'd like to ask for your hints, advice and words of wisdom --anything > you can share

Re: Undo in conjunction with core data

2011-01-21 Thread Dave Fernandes
On 2011-01-21, at 9:34 PM, Kenneth Baxter wrote: > Thanks for that suggestion Dave. I'm trying to understand how this would > work. While a tree controller would be able to represent the whole hierarchy, > I think maybe for the things I am trying to achieve here, I would be easier > to use an a

Re: Undo in conjunction with core data

2011-01-21 Thread Kyle Sluder
On Jan 21, 2011, at 10:10 PM, Dave Fernandes wrote: > > NSTreeController was broken in Tiger, but works fine for Leopard and later. > Can't remember which sample project I used to learn it, but AbstractTree > seems to do the basics. Not quite. NSObjectController and subclasses ignore any opti

Re: how to change NSButton color

2011-01-21 Thread Kyle Sluder
On Jan 20, 2011, at 11:49 PM, Dianne wrote: > Hi List, > > I would like to know what you can suggest when changing the color of NSButton. > I have read everywhere that I need to subclass NSButtonCell and NSButton as > well, is this the only way to do it for Mac? > I'm surprised that this is how

Re: starting with Cocoa!

2011-01-21 Thread Seth Willits
On Jan 20, 2011, at 10:55 PM, Janos Syd Nepthali Pao wrote: > I own an old Macbook (this is the first generation macbook, 13inch white), > it's still running on Tiger (i haven't updated to Leopard yet). I think the > XCode that came with this OS is already obsolete? Completely. The latest tools

Re: Undo in conjunction with core data

2011-01-21 Thread Dave Fernandes
On 2011-01-21, at 10:47 PM, Jerry Krinock wrote: > One warning though: Some years ago, I heard bad things about Core Data with > NSTreeController and NSOutlineView, and for this reason have thus far shunned > NSTreeController and stuck with my old-fashioned data source, using change > notifica

how to change NSButton color

2011-01-21 Thread Dianne
Hi List, I would like to know what you can suggest when changing the color of NSButton. I have read everywhere that I need to subclass NSButtonCell and NSButton as well, is this the only way to do it for Mac? I'm surprised that this is how complicated it is in Mac. Why NSButton doesn't have any

starting with Cocoa!

2011-01-21 Thread Janos Syd Nepthali Pao
Hi all! I'm glad to find this mailing list. I'm starting with Cocoa (side by side with iOS development), i wanted to learn software development (this totally rocks!). I'd like to ask for your hints, advice and words of wisdom --anything you can share for someone just beginning his journey

Community link blog

2011-01-21 Thread Maurício Linhares
Hi guys, I've been searching around but could not find a community link blog for Cocoa developers as we have in the ruby community ( http://www.rubyflow.com/ ). Is there anything like that for Objective-C/iOS/MacOS dev? - Maurício Linhares http://about.me/mauricio.linhares __

Re: Undo in conjunction with core data

2011-01-21 Thread Jerry Krinock
On 2011 Jan 21, at 18:34, Kenneth Baxter wrote: > So, completely separate from the UI, I create an array controller in my Node > managed object, and set its entity name, MOC etc, and set the fetch predicate > to be @"parent = SELF". It should then keep itself updated when the children > get ad

Re: Core data autosave

2011-01-21 Thread Gideon King
Yes, I did wonder about using the undo manager instead - talked about it briefly with one of my staff, but haven't kind of worked out the details of how that would work yet though. I'll give it some more thought this afternoon. And yes, I already use GCUndoManager - it has saved me countless hou

Re: Core data autosave

2011-01-21 Thread Jerry Krinock
On 2011 Jan 21, at 17:20, Gideon King wrote: > I will need to implement …[algorithm suggested by Ben Trumbull]… shortly, so > am very keen to hear of a solution - especially if that comes with some code > … ;-). No code, but some advice. The required change tracking described by Ben seems li

Re: Undo in conjunction with core data

2011-01-21 Thread Jerry Krinock
On 2011 Jan 21, at 16:03, Kenneth Baxter wrote: > - (MyNode *)createChild { > MyNode *child = [NSEntityDescription insertNewObjectForEntityForName:… Core Data undo will take care of that automatically. > // Set a bunch of properties on the new child. Core Data undo will take care of that autom

Re: Undo in conjunction with core data

2011-01-21 Thread Kenneth Baxter
Thanks for that suggestion Dave. I'm trying to understand how this would work. While a tree controller would be able to represent the whole hierarchy, I think maybe for the things I am trying to achieve here, I would be easier to use an array controller on the children, and keep it at a managea

Re: Core data autosave

2011-01-21 Thread Gideon King
Hi Ken, I have also been wrestling with this one, and last year had the following suggestion from Ben: "The problem with autosave is that NSDocument wants the current document to stay dirty. Save As pushes all the current edits to disk in the new document. Autosave is supposed to lea

Core data autosave

2011-01-21 Thread Kenneth Baxter
I need to autosave my documents in my core data document based application I must say I was surprised and disappointed when I found out that Core Data doesn't appear to have any autosave support built in and NSPersistentDocument doesn't support the superclass NSDocument autosave architecture.

Re: Undo in conjunction with core data

2011-01-21 Thread Dave Fernandes
One way to do this through the MVC paradigm is to bind an NSArrayController or NSTreeController to your managed object context (in Entity mode), and then have your view layer bind or use KVO with the selectedObjects or arrangedObjects attribute of the controller. On 2011-01-21, at 7:03 PM, Kenn

Undo in conjunction with core data

2011-01-21 Thread Kenneth Baxter
I am trying to work out an issue with undo in a few places in my application, and think if I "get it" with one of the places, I should be able to apply the same theory elsewhere. I have a parent and children relationship, and need to have a few things happen during the process of adding and de

Tiling, applying it in my app.

2011-01-21 Thread Gustavo Pizano
Hello all. I have seen the WWDC video a,d im checking the source code about Tiling & zooming in a UIScrollView. Now, my app differs a little in it's content as from the view but as in the video was stated the technique is portable for proper zoom in a scrollview. I have a UIScrollview, the scr

Re: Magazine Framework

2011-01-21 Thread Laurent Daudelin
None that I'm aware of… but I don't pretend to know everything that is out there…. -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/ Logiciels Nemesys Software laur...@nemesys-soft.com

Re: Prevent windows from opening multiple times

2011-01-21 Thread John Joyce
On Jan 21, 2011, at 2:27 PM, Quincey Morris wrote: > On Jan 21, 2011, at 10:48, Luc Van Bogaert wrote: > >> Instead of using a local pointer variable in the action method to open the >> window, I thought about using an instance variable in my app delegate to >> hold a pointer to the windowcont

Re: Prevent windows from opening multiple times

2011-01-21 Thread Quincey Morris
On Jan 21, 2011, at 10:48, Luc Van Bogaert wrote: > Instead of using a local pointer variable in the action method to open the > window, I thought about using an instance variable in my app delegate to hold > a pointer to the windowcontroller object, and check its existance before > opening the

Re: NSBlockOperation with +[sendSynchronousRequest sendSynchronousRequest:...] or async?

2011-01-21 Thread Ken Ferry
Hi Rick, I thought I'd pass along a message from Quinn in Apple's DTS group on this topic. Also, fyi, is better for networking questions -Ken Doing your NSConnection stuff synchronously is a mistake, even if > NSBlockOperation makes it easier. There

Prevent windows from opening multiple times

2011-01-21 Thread Luc Van Bogaert
Hi, I've implemented a simple Preferences window using example code from a Cocoa handbook. When opening the window, the window controller is created and initialized with a nib file. When closing the window, the window object resources are (auto)released in the windowWillClose delegate method.

Magazine Framework

2011-01-21 Thread Fernando Aureliano
Hi! You guys know if exist some framework for help to build a magazine? thanks -- *Fernando * ___ 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

Re: NSString localizedStringWithFormat: and thousand separators

2011-01-21 Thread David Duncan
On Jan 21, 2011, at 3:21 AM, Nala Gnirut wrote: > Hi all, > according to Apple's documentation, localizedStringWithFormat supports > format specifiers as detailed in IEEE printf > specification > . > > Unfortunately, a simple t

Re: Gestures

2011-01-21 Thread Bill Cheeseman
On Jan 17, 2011, at 2:40 PM, Bill Cheeseman wrote: > I love my Magic Trackpad -- when it works. I have to shut down my Mac, crawl > under the desk, unplug the power cord and all the USB cables, plug the power > cord back in, restart from the power button, plug all the USB cables back in, > and

NSString localizedStringWithFormat: and thousand separators

2011-01-21 Thread Nala Gnirut
Hi all, according to Apple's documentation, localizedStringWithFormat supports format specifiers as detailed in IEEE printf specification . Unfortunately, a simple test does not seem to work as expected when using ' to request f

Re: NSBlockOperation with +[sendSynchronousRequest sendSynchronousRequest:...] or async?

2011-01-21 Thread Keith Duncan
Hi Rick, Don't use the NSURLConnection synchronous method, it's non-cancellable and blocks the calling thread until timeout, or completion. A better block based NSURLRequest method would be as follows (typed in Mail from memory): > @implementation NSOperationQueue (MyAdditions) > > typedef N