NSUnarchiver / Data.archive Extract all Keys

2010-12-10 Thread Michael Robinson
Hi List, I'm wondering if it is possible to extract all keys from a Data.archive file that was saved with an NSArchiver? Note I no longer have the source code that saved this file, hence my desire to extract the keys information stored there. Thanks Mike

Re: NSUnarchiver / Data.archive Extract all Keys

2010-12-10 Thread Michael Robinson
yes, it's noise... Also it's not just one, they're save files for an old program I made - I'd like to be able to extract the data so I can save it in the format used for more recent versions Here's the contents of one of the files when opened with TextEdit: bplist00‘

Re: NSUnarchiver / Data.archive Extract all Keys

2010-12-10 Thread Michael Robinson
Correction: I meant NSKeyedArchiver / NSKeyedUnarchiver On 23/07/64 7:59 AM, Michael Robinson wrote: Hi List, I'm wondering if it is possible to extract all keys from a Data.archive file that was saved with an NSArchiver? Note I no longer have the source code that saved this file, hence my

Re: NSUnarchiver / Data.archive Extract all Keys

2010-12-10 Thread Michael Robinson
NSLog(@%@, [NSUnarchiver unarchiveObjectWithFile:@/Users/facelap/Sites/Work/Data.archive]); Outputs: (null) NSLog(@%@, [NSDictionary dictionaryWithContentsOfURL:fileUrl]); outputs: { $archiver = NSKeyedArchiver; $objects = ( $null, { $class =

NSBitmapImageRepresentation image generation and saving resulting in image with much noise

2009-11-09 Thread Michael Robinson
Hi List, I'm attempting to create a bunch of png or jpg images based on user-set options. I'm getting images with a lot of noise in them, I was wondering if anyone has any ideas why this would be? I've attached a screenshot of the noisy images I've been getting. The shot is of four images

How to iterate over all objects stored with NSCoder

2009-10-12 Thread Michael Robinson
Hi list, I stupidly lost the source code to a program I wrote a long time ago, and now have enough spare time to re-write it. The program stored data with NSCoder. The re-written program needs to be able to read the same data. As I lost the source code, I would like to know if there is a

Re: Cocoa-dev Digest, Vol 6, Issue 154

2009-01-26 Thread Michael Robinson
Greetings List, A month ago my main hard disk failed, and I lost some development files that were not backed up. Yes I know I am stupid. Unfortunately the disk is too damaged for any recovery. I have the latest version of the project I was working on, but it is in a compiled, releasable

Re: NSTableView Drag-Drop re-ordering...

2008-11-26 Thread Michael Robinson
(I really did intend for this to reach the list, but I hurriedly pressed the reply to sender hotkey) Hi Jean-Nicolas I too had a horrible time implementing this. Below I've pasted the code that handles dnd re-ordering in my table. Basically it just makes a copy of the dragged row, deletes

Re: NSImage/NSImageView/GIF Saving an Animated GIF from NSImageView

2008-11-26 Thread Michael Robinson
I was wondering if anyone had any ideas on how to do this? Thanks Michael Robinson wrote: div class=moz-text-flowed style=font-family: -moz-fixedHi list, I'd like to be able to use an NSImageView to display a default animated GIF image. The image may be replaced by the user. I have been

NSImage/NSImageView/GIF Saving an Animated GIF from NSImageView

2008-11-25 Thread Michael Robinson
Hi list, I'd like to be able to use an NSImageView to display a default animated GIF image. The image may be replaced by the user. I have been using the code below to save / load images from / into the image view. I would like to know how, if it is possible, one saves an animated gif,

Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers?

2008-10-04 Thread Michael Robinson
doesn’t want to go to war, and the three most powerful men in America are named ‘Bush’, ‘Dick’, and ‘Colon.’ Need I say more?” -- Chris Rock On 4/10/2008, at 7:55 PM, Graham Cox wrote: On 4 Oct 2008, at 2:17 pm, Michael Robinson wrote: Now I'd like to replace this: NSGradient

A way to use multiple colours with one NSBezierPath?

2008-10-03 Thread Michael Robinson
Hello again I would like to draw one path, which is used as a border. I naively assumed I could change the colour of the path as it is constructed, but it seems this is not the case. If I change the colour (using [[NSColor blackColor] set]; for example), this changes the colour for the

Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers?

2008-10-03 Thread Michael Robinson
On 2/10/2008, at 5:29 AM, David Duncan wrote: On Oct 1, 2008, at 5:46 AM, Michael Robinson wrote: Unsurprisingly, I need my hand held again. 1. how do I initialize a CGShading object, with my two colours (left right/top bottom) See the Quartz 2D Shadings sample at http

Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers?

2008-10-01 Thread Michael Robinson
Oct 2008, at 11:55, Michael Robinson wrote: On 1/10/2008, at 11:44 PM, Alastair Houghton wrote: The CSS could be something like div.box { position: relative } div.box div.tl { position: absolute; top: 0px; left: 0px; z-index: 100 } div.box div.tr { position: absolute; top: 0px; right: 0px; z

Creating a PNG with rounded corners, background colour + gradient with alpha for use as a background

2008-10-01 Thread Michael Robinson
I'm making a plugin for Rapidweaver, and need to create a background image that has rounded corners + a border, an optional gradient, an optional background colour (that may show through the gradient depending on gradient's opacity). When I've got the image drawing correctly, depending on

Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers?

2008-09-30 Thread Michael Robinson
Thanks for your incredibly swift replies! changing float retVal to double retVal, using return lround(retVal); and casting ints as doubles in the formula gave me some real values, which is wonderful! I could have saved myself two hours by asking the list when I first ran into this

Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers?

2008-09-30 Thread Michael Robinson
On 1/10/2008, at 3:23 AM, Alastair Houghton wrote: On 30 Sep 2008, at 12:59, Michael Robinson wrote: Thanks for your incredibly swift replies! changing float retVal to double retVal, using return lround(retVal); and casting ints as doubles in the formula gave me some real values, which

Help!

2008-09-01 Thread Michael Robinson
Hi I need to use a NSTableView to control data input by the user. The table has two columns, labeled Title and Content. The number of columns is fixed. I've read what I can find on the internet, but a lot of it goes way over my head (I'm fairly new at ObjC and xCode -- coming from

NSDictionaryController + NSTableView

2008-08-31 Thread Michael Robinson
Hi I need to use a NSTableView to control data input by the user. The table has two columns, labeled Title and Content. The number of columns is fixed. I've read what I can find on the internet, but a lot of it goes way over my head (I'm fairly new at ObjC and xCode -- coming from