Re: NSUserDefaults

2009-09-03 Thread Steven Riggs
That's how I do it. I also use setValue:forKey: when passing NSLocalizedString() -Steve On Sep 3, 2009, at 5:05 PM, Oftenwrong Soong wrote: Hi all, Why does NSUserDefaults provide method stringForKey but not a method setString:forKey (akin to setBool:forKey, setFloat:forKey, etc.)?

Re: CalendarStore and delegated calendars

2009-06-29 Thread Steven Riggs
Any takers on the subject of iCal delegated calendars and the CalendarStore? I may file a bug. -Steve On Jun 22, 2009, at 11:47 PM, Steven Riggs wrote: Hello all, Is it a bug or by design that the CalendarStore will not pick up delegated calendars? I've googled all night without

CalendarStore and delegated calendars

2009-06-22 Thread Steven Riggs
Hello all, Is it a bug or by design that the CalendarStore will not pick up delegated calendars? I've googled all night without an answer. Thanks in advance! -Steve ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Usefulness of NSSharedUserDefaultsController?

2009-05-20 Thread Steven Riggs
I directly bind my UI to the shared user defaults controller and I use key value observing to watch for changes. Steven Riggs On May 20, 2009, at 6:24 PM, Rick Mann wrote: How useful is it to bind (in IB) to NSSharedUserDefaultsController, in practice? I have a couple checkboxes bound

Re: Format Column for Selected Row

2009-05-17 Thread Steven Riggs
Maybe try a value transformer? All the best, Steven Riggs http://www.stevenriggs.com On May 17, 2009, at 9:58 PM, Walker Argendeli wrote: I have a table with a priority column. For each row, I want this column to display a number of exclamation marks corresponding to the Core Data

Re: Storing a table view in user defaults

2009-04-28 Thread Steven Riggs
Check out the sample code here that demonstrates storing a dictionary in defaults with no code. http://idisk.mac.com/steven.riggs-Public?view=web I hope it helps... Steven Riggs On Apr 28, 2009, at 11:04 AM, Ryan Briones wrote: I'm a relative newb when it comes to cocoa programming

Re: Storing a table view in user defaults

2009-04-28 Thread Steven Riggs
You were right there. All you have to do to get it to work is check 'Handles content as compound value' on the array controller content array binding. All the best, Steven Riggs On Apr 28, 2009, at 10:02 PM, Ryan Briones wrote: Hey, thanks! I actually ran across your code last night

Re: NSTableColumn setHidden: and IB

2009-04-25 Thread Steven Riggs
Make a class with IBOutlets to each tableColumn and in code, tell the tableColumns if they should be hidden. I'm not aware of an IB only solution for this one. Steven Riggs On Apr 26, 2009, at 12:42 AM, David Scheidt dsche...@panix.com wrote: I've got a 10.5 app, which has a bunch

Re: Array of Preferences

2009-03-18 Thread Steven Riggs
Hey Frank, I have a sample project that stores dictionary objects in user defaults with no code. Check it out: http://idisk.mac.com/steven.riggs-Public?view=web DictionaryInDefaults.zip I hope it helps. Steven Riggs http://www.stevenriggs.com On Mar 18, 2009, at 8:14 PM, Frank D. Engel

Re: Help on Sparkle

2008-12-02 Thread Steven Riggs
It's a little dated but check out the cocoacast video on sparkle: http://www.cocoacast.com/?q=node/49 Steven Riggs http://www.stevenriggs.com On Dec 2, 2008, at 7:00 AM, Arnab Ganguly wrote: Hi All, Can you tell me where can I get sample project with multiple nib files which uses Sparkle

Re: Writing Array of Dictionaries to Defaults (CFPreferences)

2008-12-02 Thread Steven Riggs
Here's an example of how to do it with no code... http://www.stevenriggs.com/Site/Cocoa_Programming.html Good luck, Steven Riggs On Dec 1, 2008, at 8:08 PM, [EMAIL PROTECTED] wrote: Hey All- I'm working on a Preference Pane for my app (System Preferences plugin) and need to write

Re: Remove '\n' char from NSString

2008-11-15 Thread Steven Riggs
Something like [string stringByReplacingOccurrencesOfString:@\n withString:@ ] should do the trick Adios! Steven Riggs On Nov 14, 2008, at 6:18 PM, Jordon Hirshon wrote: Is there an NSString function that would remove all of the '\n' chars from an NSString? I'm trying to concatenate

Re: Configure a button added in IB

2008-11-15 Thread Steven Riggs
/documentation/Cocoa/Reference/ApplicationKit/Classes/NSButton_Class/Reference/Reference.html ...to learn what kind of messages you can send to it. ex. [theButton setTitle:@send steve money]; :-) Good luck, Steven Riggs On Nov 15, 2008, at 7:04 PM, Mikael Wämundson wrote: Am a quite a newbie

Re: cocoa binding for the data maintained by the other thread.

2008-11-11 Thread Steven Riggs
Sure it will but use an array controller to link up the array with the table view. Steven Riggs On Nov 11, 2008, at 9:15 AM, Andrew wrote: Hi, I have read some documents about the Cocoa Bindings. And I got a question here for more comments. If I use the cocoa binding technology in my

Re: Help with this crashing method

2008-11-09 Thread Steven Riggs
You should try setObject:forKey: instead of registerDefaults: also... If you are using an array controller to handle the array in your user defaults, add your userDict object to the array controller instead of writing to defaults. Steven Riggs http://www.stevenriggs.com On Nov 10

Re: NSArrayController, bindings and NSUserDefaults

2008-11-09 Thread Steven Riggs
Check out a code sample (using no code, just IB)... http://idisk.mac.com/steven.riggs-Public?view=web -Steve On Nov 9, 2008, at 2:41 PM, Andre Masse wrote: Thanks for your reply Steven, I've tried that but no luck. I get the following error: [NSCFData 0x804a00 valueForUndefinedKey:]:

Re: NSArrayController, bindings and NSUserDefaults

2008-11-09 Thread Steven Riggs
is checked here. I think you need to archive and unarchive when you read and write each key in your dictionary. Good luck, Steven Riggs On Nov 9, 2008, at 1:09 PM, Andre Masse wrote: Hi, I'm having difficulties binding (in IB) my application's preferences to NSUserDefaults. It's easy to bind

Re: NSTableView

2008-11-04 Thread Steven Riggs
); Cheers! Steven Riggs http://www.stevenriggs.com On Nov 4, 2008, at 6:13 AM, Mahaboob wrote: Hi, My TableView contains some columns. I need to access all the column values of all selected rows. So I coded like: NSString*content; for(i=0;i[tableView numberOfRows];i

Re: NSTableView

2008-11-04 Thread Steven Riggs
One quick correction... I just noticed that you wanted selected objects so the first line should be... NSArray *array = [yourArrayController selectedObjects]; Cheers! Steven Riggs http://www.stevenriggs.com On Nov 4, 2008, at 11:46 PM, Steven Riggs wrote: You would think that would work

Re: NSTableView

2008-11-04 Thread Steven Riggs
something yourself only to discover soon after that there is a standard method to do the job. The dataCellForRow: sent me on a wild goose chase too. It was still pretty easy though once I figured out how to correlate the view arrangement with the array data. Steven Riggs On Nov 4, 2008

Re: Sizing strangeness in the land of NSDrawer

2008-10-25 Thread Steven Riggs
Turn on garbage collection and see if it starts working. -Steve On Oct 25, 2008, at 9:06 PM, Luke Evans wrote: Hello list denizens. I've just created some UI with an NSDrawer attached to a regular window. I've done this before a while back and everything worked fine. I thought

Re: Sizing strangeness in the land of NSDrawer

2008-10-25 Thread Steven Riggs
Typo, I meant turn off garbage collection and see if it starts working. oops -Steve On Oct 25, 2008, at 9:06 PM, Luke Evans wrote: Hello list denizens. I've just created some UI with an NSDrawer attached to a regular window. I've done this before a while back and everything

Re: NSUserDefaults and binding to an NSDictionary

2008-10-19 Thread Steven Riggs
value is checked here. Good luck, Steven Riggs http://www.stevenriggs.com On Oct 19, 2008, at 5:16 PM, Todd Ouzts wrote: Not sure how to best join a thread since there's no Reply link on Apple Mailing Lists, but... I've been struggling to do what Daniel wants for a week and can't

Re: Building smart folder list as in iTunes

2008-10-15 Thread Steven Riggs
This should get you in the right direction.. http://developer.apple.com/samplecode/SourceView/index.html -Steve On Oct 15, 2008, at 12:59 PM, Jushin wrote: I would like to add a left pane (I don't know what to call this) as in iTunes or Apple Mail. In this pane, I want make place a library,

Re: Add animation layer and then remove animation layer

2008-10-13 Thread Steven Riggs
effects. Maybe show some more code? Best Regards, -Matt p.s. Don't assume animationDidStop never gets called. Set a breakpoint or call NSLog() to be sure. ;-) On Oct 10, 2008, at 6:53 PM, Steven Riggs wrote: I'm enabling a core animation when I replace a subview and I want the animation

Re: Add animation layer and then remove animation layer

2008-10-12 Thread Steven Riggs
and other fun fade effects. Maybe show some more code? Best Regards, -Matt p.s. Don't assume animationDidStop never gets called. Set a breakpoint or call NSLog() to be sure. ;-) On Oct 10, 2008, at 6:53 PM, Steven Riggs wrote: I'm enabling a core animation when I replace a subview and I want

Add animation layer and then remove animation layer

2008-10-10 Thread Steven Riggs
I'm enabling a core animation when I replace a subview and I want the animation layer to go away when the transition is finished so I don't have the blinky window resizing and other fun fade effects that I don't want. I have a problem with my code. The first time I changeRightView the

Re: How can be my application notified about user defaults changes?

2008-10-10 Thread Steven Riggs
of the selectedView buttons pressed? if([keyPath isEqual:@AppleMeasurementUnits]) { //Stuff to do when AppleMeasurementUnits changes } } All the best, Steven Riggs http://www.stevenriggs.com NSUserDefaultsDidChangeNotification On 09-Oct-08, at 5:51 PM