Re: +bundleForClass: category question

2012-07-21 Thread Uli Kusterer
On 16.07.2012, at 04:30, Graham Cox wrote: If I create a category on a standard framework class as part of another framework, and I use +[NSBundle bundleForClass:] to load an image resource for use by that category, does that work, i.e. does it load the bundle of the framework containing

Re: Cell in Selected NSTableView Not Redrawn

2012-07-21 Thread Keary Suska
On Jul 20, 2012, at 9:36 PM, Quincey Morris wrote: On Jul 20, 2012, at 19:03 , Keary Suska wrote: In an NSTableView I am providing custom cells via tableView:dataCellForTableColumn:row:, based on values represented in other columns. The cell is usually determined when a value is specified

saving images

2012-07-21 Thread H. Miersch
hi. i just started a new ios project where i want to download images using NSimage's initwithcontentsofURL: method. now i also want to write those images to permanent storage, but how do i do that? as far as i can tell, NSImage has no method for writing images to disk. is there something i

Re: saving images

2012-07-21 Thread Nick Zitzmann
On Jul 21, 2012, at 10:03 AM, H. Miersch wrote: i just started a new ios project where i want to download images using NSimage's initwithcontentsofURL: method. now i also want to write those images to permanent storage, but how do i do that? You could always download the data given the

Re: saving images

2012-07-21 Thread H. Miersch
On 21. Jul 2012, at 17:37, Nick Zitzmann wrote: On Jul 21, 2012, at 10:03 AM, H. Miersch wrote: i just started a new ios project where i want to download images using NSimage's initwithcontentsofURL: method. now i also want to write those images to permanent storage, but how do i do

Fwd: Cell in Selected NSTableView Not Redrawn

2012-07-21 Thread Keary Suska
On Jul 20, 2012, at 19:03 , Keary Suska wrote: In an NSTableView I am providing custom cells via tableView:dataCellForTableColumn:row:, based on values represented in other columns. The cell is usually determined when a value is specified via NSPopupButtonCells in two other columns. When

Re: saving images

2012-07-21 Thread Conrad Shultz
NSImage is for OS X. You need to use UIImage on iOS. One difference is that UIImage doesn't have an -initWithContentsOfURL: method. Note that UIImage conforms to NSCoding, so once you've loaded a UIImage through whichever means you prefer (NSData, the URL loading system, etc.) you can archive

Re: saving images

2012-07-21 Thread Nick Zitzmann
On Jul 21, 2012, at 10:41 AM, H. Miersch wrote: On 21. Jul 2012, at 17:37, Nick Zitzmann wrote: On Jul 21, 2012, at 10:03 AM, H. Miersch wrote: i just started a new ios project where i want to download images using NSimage's initwithcontentsofURL: method. now i also want to write

Re: 10.7 Full-Screen transition animation corrupts my UI - how to avoid?

2012-07-21 Thread Motti Shneor
Hi, the header-file documentation for the suggested delegate method tells the following: --- 1. windowWillResize:toSize: Tells the delegate that the window is being resized (whether by the user or through one of the setFrame... methods other than setFrame:display:). 2. The

Re: KVG generic enough?

2012-07-21 Thread Chris Hanson
On Jul 18, 2012, at 4:46 PM, William Squires wsqui...@satx.rr.com wrote: For example, an effect could be called fireball and do 1d6 HP to a player caught in the blast radius. My 'effect' class has an @property of type NSMutableArray (which holds 'codons' in NSStrings) of the form:

Re: saving images

2012-07-21 Thread Graham Cox
On 22/07/2012, at 2:58 AM, Conrad Shultz wrote: Note that UIImage conforms to NSCoding, so once you've loaded a UIImage through whichever means you prefer (NSData, the URL loading system, etc.) you can archive the image to an NSData (and of course unarchive) in the usual manner.

Given NSString containing a letter like Ç, how do I convert that to a C?

2012-07-21 Thread Alex Kac
I'm creating an index for a table that we're sorting. Sorting using localized compare will properly compare ç with c. But then my index shows both c and ç. Given that I'm simply taking the first character of the string, how can I get the letter C when the string starts with Ç?

Re: Given NSString containing a letter like Ç, how do I convert that to a C?

2012-07-21 Thread David Duncan
On Jul 21, 2012, at 6:26 PM, Alex Kac a...@webis.net wrote: I'm creating an index for a table that we're sorting. Sorting using localized compare will properly compare ç with c. But then my index shows both c and ç. Given that I'm simply taking the first character of the string, how can I

Re: Given NSString containing a letter like Ç, how do I convert that to a C?

2012-07-21 Thread Alex Kac
Yup. That's what I was looking for. The word Folding just didn't register with me as what I was looking for as I searched the docs. Thanks! On Jul 21, 2012, at 8:57 PM, David Duncan david.dun...@apple.com wrote: On Jul 21, 2012, at 6:26 PM, Alex Kac a...@webis.net wrote: I'm creating an