Re: Array of dictionaries containing NSColor in NSUserDefaults

2009-11-12 Thread Matt Mashyna
Are you calling setObject and sync with NSUserdefaults at some point? Matt Sent from my iPhone On Nov 12, 2009, at 4:18 PM, Martin Hewitson wrote: Dear list, The hardest part of this problem may be explaining it, but here goes. I want to store an array of dictionaries in NSUserDefaul

Re: Newbie pulling my hair out regarding a simple xcode issue. Please help :-)

2008-06-23 Thread Matt Mashyna
You need to think in terms of MVC - Model, View, Controller. You have the view now you need to think of the model and controller. Make an object in Xcode called something like MyController. For this simple example you could combine the model and controller. Add an NSMutable Array for your m

Webkit plug-in help

2008-06-23 Thread Matt Mashyna
I'm sorry for posting this here but posting to the webkit list is like putting a message in a bottle. Maybe someone here will be able to offer a clue. I'm struggling with a plug-in. I looked at the example plug-ins like the movie player. The movie player looks at the source url and uses it

Re: Main Thread UI and Detached Thread

2008-03-31 Thread Matt Mashyna
As long as we're top posting... Why not update values for your worker thread and spawn another thread that does the UI progress updates periodically ? Works nice for me. I update the UI with whatever my controller object's state is at that moment and then sleep for a little. I like this sch

iPod Notifications

2008-03-28 Thread Matt Mashyna
I'm trying to detect when an iPod Touch is connected or disconnected. I can see all kinds of stuff in the console when I connect it. Can anyone recommend an notification to listen for when it's connected or disconnected ? I need to keep a list updated with all the connected iPods. If a new

iPhone/iPod Touch

2008-03-21 Thread Matt Mashyna
This isn't really a cocoa question but you guys know everything. I need to know when an iPod Touch or iPhone is connected and get it's name. The other iPods are easy to query because they look like disk volumes. Does anyone know how I can as an iPod Touch what its name is ? Thanks, Matt ___

Re: Stupid question: how do you show an NSWindow?

2008-03-10 Thread Matt Mashyna
On Mar 10, 2008, at 2:12 PM, Nathaniel Gottlieb-Graham wrote: This is going to sound really stupid, but how do you show an NSWindow? [aWindow close] seems to be the appropriate method to close it, but idiotically enough, I can't seem to find a way re-show the window once it's no longer on-