Re: Stepwise articles

2011-10-19 Thread Gregory Casamento
I honestly wish that he had left them up or had allowed them to be Archived. Those articles were invaluable back in the NeXT/OPENSTEP days and they would certainly be valuable today. GC On Mon, Oct 17, 2011 at 2:23 PM, Charles Srstka wrote: > On Oct 17, 2011, at 4:37 AM, Mark Taeery wrote: > >>

Enter/exit full screen notification

2011-10-19 Thread Ryan Joseph
Is there an effective way to be notified when the system goes into full screen mode (on 10.6 and 10.7)? The only information I found on Google was from 2005 and earlier including Carbon event handlers which are deprecated now. I ask because I have a user agent app (which floats above all windows

Re: Stepwise articles

2011-10-19 Thread Scott Anguish
On Oct 17, 2011, at 2:23 PM, Charles Srstka wrote: > On Oct 17, 2011, at 4:37 AM, Mark Taeery wrote: > >> Hi all, >> >> does anybody have a copy of the following article: >> >> http://www.stepwise.com/Articles/Technical/MemoryManagement.html >> >> archive.org appears not to have it. >> >> Tha

Re: How to get rid of blinking?

2011-10-19 Thread Jim McGowan
> -(void)mouseDragged:(NSEvent *)theEvent { >NSPoint locationOnCanvas = [self convertPoint:[theEvent > locationInWindow] fromView:nil]; > > if(currentMouseMode == MMZooming) { > *[self display]; //clear the previous "rectangle" > [self lockFocus]; > [self drawRectUsingTwo

Re: Code signing issues

2011-10-19 Thread Gideon King
I had not, but now I have - it made no difference - I still got the same cryptic error message. Regards Gideon On 18/10/2011, at 11:29 AM, Graham Cox wrote: > > On 18/10/2011, at 12:27 PM, Gideon King wrote: > >> • The system interprets the exit status and attempts to obtain a valid >> rece

Re: Custom NSArrayController that manages its own array?

2011-10-19 Thread Jens Alfke
On Oct 18, 2011, at 6:44 PM, Quincey Morris wrote: > Absolutely. I'll add here that NSArrayControllers are basically glue, and not > even (exactly) necessary glue. You can connect a table view directly to a > data model, without using an array controller. All the array controller does > is to

Re: Custom NSArrayController that manages its own array?

2011-10-19 Thread Jens Alfke
On Oct 18, 2011, at 5:01 PM, Keary Suska wrote: > Well, "entries" in this case is redundant. If you subclass is designed to > manage an array of "entries", then its content would simply be the array > itself. There is no need to abstract it out by the key. In fact, it is a code > smell to do s

ANN: Webcast tomorrow on CouchDB / Couchbase Mobile

2011-10-19 Thread Jens Alfke
FYI, I’m giving a live webcast with O’Reilly tomorrow about my current work project — Couchbase Mobile. We’ve taken the tangy Apache CouchDB NoSQL database engine, wrapped it in delicious Objective-C APIs, and packaged it in a convenient no-mess framework that’s easy to drop into your iOS app. (

Re: How to get rid of blinking?

2011-10-19 Thread Nick
Thank you 2011/10/19 Fritz Anderson > On 19 Oct 2011, at 12:41 PM, Nick wrote: > > > Could you advice me how to get rid of blinking in the following code? > > This is an NSView's subclass, I am trying to draw a rectangle for zooming > > (theoretically a user is supposed to be able to zoom in a p

Re: How to get rid of blinking?

2011-10-19 Thread Mike Abdullah
On 19 Oct 2011, at 18:41, Nick wrote: > Hello > Could you advice me how to get rid of blinking in the following code? > This is an NSView's subclass, I am trying to draw a rectangle for zooming > (theoretically a user is supposed to be able to zoom in a piece of a view, > by selecting a rectangle

Re: How to get rid of blinking?

2011-10-19 Thread Fritz Anderson
On 19 Oct 2011, at 12:41 PM, Nick wrote: > Could you advice me how to get rid of blinking in the following code? > This is an NSView's subclass, I am trying to draw a rectangle for zooming > (theoretically a user is supposed to be able to zoom in a piece of a view, > by selecting a rectangle area

How to get rid of blinking?

2011-10-19 Thread Nick
Hello Could you advice me how to get rid of blinking in the following code? This is an NSView's subclass, I am trying to draw a rectangle for zooming (theoretically a user is supposed to be able to zoom in a piece of a view, by selecting a rectangle area to zoom. The problem is that when the mouse

Re: ARC + return of autoreleased CFType

2011-10-19 Thread John Pannell
Many thanks to all who responded. Here's a few resolutions for the archives: 1. CFType: cast to id and autorelease. Verdict: it is OK (under manual memory management). http://www.cocoabuilder.com/archive/cocoa/215004-autorelease-cgimageref.html http://developer.apple.com/library/mac/#document

Re: ARC + return of autoreleased CFType

2011-10-19 Thread John Joyce
Check the nice clear tutorial at http://www.mikeash.com/pyblog/friday-qa-2011-09-30-automatic-reference-counting.html It spells out how to handle CF types in ARC. On Oct 19, 2011, at 9:52 AM, Wade Tregaskis wrote: >> Following Cocoa convention you'd want to cast it to what and autorelease it? >

Re: Zooming a view, that is contained in an NSScrollView

2011-10-19 Thread Nick
Thanks a lot Graham and John! That did it :-) 2011/10/18 Graham Cox : > > On 18/10/2011, at 5:59 AM, John Pannell wrote: > >> Hi Nick- >> >> There is some composition of views needed to make this work.  Within >> GCDrawKit, find the GCZoomView class… make your custom view a subview of >> this (

Re: ARC + return of autoreleased CFType

2011-10-19 Thread Kyle Sluder
On Oct 19, 2011, at 6:24 AM, Roland King wrote: > Following Cocoa convention you'd want to cast it to what and autorelease it? > CGColorRef isn't toll-free bridged with anything. If you have been casting it > to id and autoreleasing it you might have gotten away with that before but I > don't

Re: ARC + return of autoreleased CFType

2011-10-19 Thread Wade Tregaskis
> Following Cocoa convention you'd want to cast it to what and autorelease it? > CGColorRef isn't toll-free bridged with anything. If you have been casting it > to id and autoreleasing it you might have gotten away with that before but I > don't think it's documented anywhere you can do that wit

Re: ARC + return of autoreleased CFType

2011-10-19 Thread Ken Thomases
On Oct 19, 2011, at 8:04 AM, John Pannell wrote: > I've got a category on NSColor to return a CGColor value. Source looks like > this: > > - (CGColorRef)CGColor > { >NSColor *colorRGB = [self > colorUsingColorSpaceName:NSCalibratedRGBColorSpace]; >CGFloat components[4]; >[colorRGB

Re: ARC + return of autoreleased CFType

2011-10-19 Thread Roland King
Following Cocoa convention you'd want to cast it to what and autorelease it? CGColorRef isn't toll-free bridged with anything. If you have been casting it to id and autoreleasing it you might have gotten away with that before but I don't think it's documented anywhere you can do that with CFType

ARC + return of autoreleased CFType

2011-10-19 Thread John Pannell
Hi all- I've got a category on NSColor to return a CGColor value. Source looks like this: - (CGColorRef)CGColor { NSColor *colorRGB = [self colorUsingColorSpaceName:NSCalibratedRGBColorSpace]; CGFloat components[4]; [colorRGB getRed:&components[0] green:&components[1] blue:&compone

Re: How to get key code from "SysDefined" Carbon Event

2011-10-19 Thread Jerry Krinock
On 2011 Oct 18, at 21:58, Ken Thomases wrote: > "Should" in what sense? It's a type indicator, that's why it starts with > "type". Well, it's an enum symbol in a system header. But forget it. I made a mistake there. James was correct to begin with. It should be typeEventHotKeyID. Sorry

Re: Is it possible to use Radio Group(NSMatrix) in a different way?

2011-10-19 Thread Ken Ferry
On Mon, Oct 17, 2011 at 10:26 AM, Fritz Anderson wrote: > On 15 Oct 2011, at 9:18 AM, Bill David wrote: > > > I need implement a UI as the following on my Mac OS 10.6: > > > > option 1 > >detailed configuration for option 1 > > option 2 > >detailed configuration for option 2 > > option 3 >

Re: Keeping grayscale image grayscale

2011-10-19 Thread Ken Ferry
On Tue, Oct 18, 2011 at 6:26 AM, Jonathan Taylor wrote: > Belated thanks for the various replies to my question. I'm working through > the posted code and links now and looking at what I can learn from it. One > query though: > > On 12 Oct 2011, at 16:42, Heinrich Giesen wrote: > > Another rule of