On Tue, Oct 18, 2011 at 6:26 AM, Jonathan Taylor j.m.tay...@durham.ac.ukwrote:
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:
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.
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]
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
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
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
On Oct 19, 2011, at 6:24 AM, Roland King r...@rols.org 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
Thanks a lot Graham and John!
That did it :-)
2011/10/18 Graham Cox graham@bigpond.com:
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
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?
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
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 to
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
Thank you
2011/10/19 Fritz Anderson fri...@manoverboard.org
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
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.
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 so.
The
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 add
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
receipt.
-(void)mouseDragged:(NSEvent *)theEvent {
NSPoint locationOnCanvas = [self convertPoint:[theEvent
locationInWindow] fromView:nil];
if(currentMouseMode == MMZooming) {
*[self display]; //clear the previous rectangle
[self lockFocus];
[self
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.
Thanks,
Mark
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
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
cocoa...@charlessoft.com wrote:
On Oct 17, 2011, at 4:37 AM,
21 matches
Mail list logo