view-based nstableview advice

2012-04-02 Thread Rick C.
Hi, Just trying to make sure I'm on the right track here...so I'm doing my first view-based table view and I do like how I can set a lot of things up in IB like text fields, etc. But I want to customize the rows (give them a gradient, etc.) so am I understanding correctly that I should drag ou

Crash in NSBitmapImageRep representationUsingType: NSPNGFileType for 8-bit grayscale

2012-04-02 Thread John Horigan
I have code that produces a PNG file from a cropped version of a bitmap that can be 8-bit grayscale, 16-bit grayscale, 24-bit color, or 32-bit color+alpha. It basically looks like this: - (NSData *) getPNGCropped: (NSRect)cropRect { unsigned char* planes[5]; int offset =(int)cropRect

Passing data through a segue

2012-04-02 Thread Rick Mann
I have a simple storyboard app with a push segue from a master table to a detail controller. In the past, I'd implement -didSelectRowAtIndexPath, get the object for that row, create the detail view controller, assign the object to it, and push it. Now I don't really see a nice way to do that wi

Re: Passing data through a segue

2012-04-02 Thread Rick Mann
Oh. It seems I can't even implement didSelectRowAtIndexPath; it's not getting called. If the docs for didSelectRowAtIndexPath had been updated to talk about it's use in the context of segues, I wouldn't have to read every word of every other doc published to try to find the answer. -- Rick O

Re: Passing data through a segue

2012-04-02 Thread Roland King
in -didSelectRowAtIndexPath you get the object then you call performSegue:withIdentifer:sender with the object you just got as the sender. in -prepareForSegue you have the destination view controller from the segue object and you have the 'object' you used as sender, the object from your table

Re: Passing data through a segue

2012-04-02 Thread Rick Mann
Thanks for the quick response. I think I'm okay with sending stuff through the sender parameter, although I do agree it's a bit ugly. Problem is, my didSelectRowAtIndexPath isn't getting called... :-( The delegate is set correctly, so I'm assuming iOS doesn't call it in the presence of segues?

Re: Passing data through a segue

2012-04-02 Thread Rick Mann
Ah, finally found some docs. In the View Controller Programming Guide, "Configuring the Destination Controller When a Segue is Triggered", it uses -indexPathForSelectedRow. On Apr 2, 2012, at 4:15 , Rick Mann wrote: > Thanks for the quick response. > > I think I'm okay with sending stuff thro

Re: Passing data through a segue

2012-04-02 Thread Roland King
What's your trigger for the segue? Have you set it up in IB so that a select on the table cell triggers it automagically? If so then no you have probably lost control of didSelect... So you have two choices. Either do the second thing I said, find the sending tableViewController, get its selec

Re: Passing data through a segue

2012-04-02 Thread Marco Tabini
On 2012-04-02, at 7:15 AM, Rick Mann wrote: > Thanks for the quick response. > > I think I'm okay with sending stuff through the sender parameter, although I > do agree it's a bit ugly. > > Problem is, my didSelectRowAtIndexPath isn't getting called... :-( The > delegate is set correctly, so

Re: Passing data through a segue

2012-04-02 Thread Rick Mann
On Apr 2, 2012, at 4:23 , Marco Tabini wrote: > Have you tried to override -prepareForSegue:sender: and use -[UITableView > indexPathForSelectedRow] to retrieve the selected row? That does the trick > for me. Thanks, that's how I ended up doing it. ___

Re: Passing data through a segue

2012-04-02 Thread Rick Mann
On Apr 2, 2012, at 4:23 , Roland King wrote: > Either do the second thing I said Yup, that's what I ended up doing. Thanks for pointing out the segue trigger; I didn't know how/where to adjust that. -- Rick ___ Cocoa-dev mailing list (Cocoa-dev@

Changed cell identifier, now it's not found?

2012-04-02 Thread Rick Mann
Huh. I changed the name of one of my prototype cells in the storyboard file, and changed it in the code, and now iOS can't find it. I've copied-and-pasted the name used in the string I pass into the IB field just to be sure there wasn't a typo, but I get an exception when I try to dequeue it. An

Changed cell identifier, now it's not found?

2012-04-02 Thread Rick Mann
Ugh, nvm, I can't read. The class I added didn't get added to the target, and it was complaining about the class missing. Seems like Xc4 always forgets to add new files to the target. Huh. I changed the name of one of my prototype cells in the storyboard file, and changed it in the co

Re: Changed cell identifier, now it's not found?

2012-04-02 Thread Eric E Dolecki
Clean the project? Sent from my Jedi mind. On Apr 2, 2012, at 7:35 AM, Rick Mann wrote: > Huh. I changed the name of one of my prototype cells in the storyboard file, > and changed it in the code, and now iOS can't find it. I've copied-and-pasted > the name used in the string I pass into the

Re: Stenography

2012-04-02 Thread Reaves, Timothy
He wants to write an app that will take a picture of shorthand and turn it in to text. On Sun, Apr 1, 2012 at 7:07 AM, Gregory Weston wrote: > deoxy t2 wrote: > > > I'm new to the list and new in Objective-C and Apple programming and I > have a very timely question, I want to manipulate images

RE: Stenography

2012-04-02 Thread Kirk Kerekes
For the sake of later Googlers, the word is "Steganography" (. "Stenography" is writing in shorthand. NSBitMapImageRep allows individual pixel access. On Apr 1, 2012, at 12:16 AM, cocoa-dev-requ...@lists.apple.com wrote: > Message: 9 > Date: Tue, 27

Re: Stenography

2012-04-02 Thread vincent habchi
Le 2 avr. 2012 à 14:37, "Reaves, Timothy" a écrit : > He wants to write an app that will take a picture of shorthand and turn it > in to text. Stenography (Greek stenos-: reduced) is an obsolete system of script secretaries used to take notes on the fly. I’m not sure, but I think it is a syll

Re: Stenography

2012-04-02 Thread Alex Zavatone
Thank you Kirk. It pays to actually be able to spell the term you are asking people for advice on. On Apr 2, 2012, at 8:42 AM, Kirk Kerekes wrote: > For the sake of later Googlers, the word is "Steganography" > (. > > "Stenography" is writing in

Re: Stenography

2012-04-02 Thread Mikkel Islay
This may be a case of selective perception. Apparently Cocoa-developer are more familiar with steganography than shorthand. :) Since the original poster explicitly wrote "stenography", it seems plausible that was what he meant. In fact, i know that trainee journalists in the UK are taught sho

Re: Stenography

2012-04-02 Thread Peter Teeson
On 2012-04-02, at 8:46 AM, vincent habchi wrote: > Le 2 avr. 2012 à 14:37, "Reaves, Timothy" a > écrit : >> He wants to write an app that will take a picture of shorthand and turn it >> into text. > Stenography (Greek stenos-: reduced) is an obsolete system of script > secretaries used to take

Re: drawRect using a Category

2012-04-02 Thread Peter Teeson
Thank you all for your patience and kindness in educating me. I appreciate it very much. I will sub-class which is what I have previously done. This was, for me, a bit of an experiment (which failed). But that's also a good result. Thanks again. Peter On 2012-04-02, at 12:44 AM, Jens Alfke wrot

Re: Stenography

2012-04-02 Thread Lee Ann Rucker
On Apr 2, 2012, at 8:18 AM, Peter Teeson wrote: > On 2012-04-02, at 8:46 AM, vincent habchi wrote: >> Le 2 avr. 2012 à 14:37, "Reaves, Timothy" a >> écrit : >>> He wants to write an app that will take a picture of shorthand and turn it >>> into text. >> Stenography (Greek stenos-: reduced) is

Re: Stenography

2012-04-02 Thread Peter Teeson
On 2012-04-02, at 2:24 PM, Lee Ann Rucker wrote: > > On Apr 2, 2012, at 8:18 AM, Peter Teeson wrote: > >> On 2012-04-02, at 8:46 AM, vincent habchi wrote: >>> Le 2 avr. 2012 à 14:37, "Reaves, Timothy" a >>> écrit : He wants to write an app that will take a picture of shorthand and turn i

Re: view-based nstableview advice

2012-04-02 Thread Uli Kusterer
On 02.04.2012, at 08:58, Rick C. wrote: > Just trying to make sure I'm on the right track here...so I'm doing my first > view-based table view and I do like how I can set a lot of things up in IB > like text fields, etc. But I want to customize the rows (give them a > gradient, etc.) so am I un

NSObject hierarchy browser. Is there such a thing?

2012-04-02 Thread Alex Zavatone
I come from the ancient, forgotten world of Director, where I was fortunate enough to write an object method and object hierarchy browser that showed the variable type : variable value or the methods in the object hierarchy. This made programming painfully easy for me since I had a readout that

Re: NSObject hierarchy browser. Is there such a thing?

2012-04-02 Thread jonat...@mugginsoft.com
On 2 Apr 2012, at 21:56, Alex Zavatone wrote: > I come from the ancient, forgotten world of Director, where I was fortunate > enough to write an object method and object hierarchy browser that showed the > variable type : variable value or the methods in the object hierarchy. > > This made pr

Re: NSObject hierarchy browser. Is there such a thing?

2012-04-02 Thread Tito Ciuro
Hello, FYI… CocoaNav doesn't seem to be working on Mac OS X Lion 10.7.3 (crashes in RBApplicationMain) -- Tito On Apr 2, 2012, at 6:04 PM, jonat...@mugginsoft.com wrote: > http://inexdo.com/CocoaNav ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Calendar heatmap-ness ala iCal

2012-04-02 Thread Jeremy Matthews
So for one of my apps I'd like to create a ical-like heatmap (if you switch to the year view in iCal it shows daily activity via color-coding) based on some internal data...I was wondering if there were any ideas on how to get a view like that without having to reinvent the wheel...any ideas? T

Re: NSObject hierarchy browser. Is there such a thing?

2012-04-02 Thread Alex Zavatone
These apps are working (awesomely, I might add) on 10.6.8 AppKiDo and AppKiDo-for-iPhone F-Script CocoaNav launches and hangs after launch. Thank you. AppKiDo looks awesome. On Apr 2, 2012, at 5:16 PM, Tito Ciuro wrote: > Hello, > > FYI… CocoaNav doesn't seem to be working on Mac OS X L

Re: Core Data Automatic Lightweight Migration

2012-04-02 Thread Richard Somers
On Apr 2, 2012, at 4:20 PM, Richard Somers wrote: > Can anyone shed some light on this? It appears that others have also recently experienced frustration with automatic lightweight migration and have come up with zero answers. Jan 26, 2012 http://stackoverflow.com/questions/9014668/core-data-a

Re: NSDocument disc undo stack

2012-04-02 Thread Steven
If there's no mechanism to persist the app undo states and undo manager messages, how should apps that support undo work with the automatic termination behaviour ? Should automatic termination be set dynamically and disabled when undo history is present ? A user might be annoyed if the undo hist

Re: view-based nstableview advice

2012-04-02 Thread Rick C.
It's definitely possible I'm mixing things up. :-) So to create a subclass to further customize the look of my cells beyond the basics I should be subclassing NSTableRowView correct? From what I've seen in the documentation Apple is just dragging a new view onto the table view and setting that

Can't get UTI to stick

2012-04-02 Thread Jo Meder
Hi, I've written a Quick Look generator for one of my app's file types. As part of that I've defined a UTI for that file type. However whatever I do I can't the UTI to stick. I've rebuilt the app, moved it around and used lsregister to kill the Launch Services database and rebuild it. Dumping t

Re: Core Data Automatic Lightweight Migration

2012-04-02 Thread Jerry Krinock
On 2012 Apr 02, at 15:20, Richard Somers wrote: > When opening a sqlite document, the document opens without error but a > another document "mydocument~.myappsqlite" is created in the same directory > as the original. That is expected behavior. The "tildefied" document, as I call it (tilde =