Drawing into myView

2009-12-16 Thread R T
I have a subclass of NSView and I want to draw into it after I retrieve an Image in an NSImageView. I'm trying to set 2 instance variables in the drawRect block of code... @property(readwrite) NSRect tRect; @property (retain, readwrite) NSGraphicsContext*savedContext; ___

An array of

2009-12-05 Thread R T
I am trying to create an array of CGImageRefs that I will use to create CGLayers. myCGImageRefImage is the CGImageRef of the key image. Each loop, I'm trying to reload imgForLayer with this key image. The line...imgForLayer = CGImageCreateCopy(myCGImageRefImage) ...doesn't work at all. Given:

Transparency Help 2

2009-11-23 Thread R T
Given: A litho Image, Black & White pixels only. I want to show just the Black Pixels in a subclassed NSView. I've posted previously with some code and had 1 simple response that has not panned out for me. Any ideas out there, anybody been down this road? Thanks Rick _

Transparency Help

2009-11-23 Thread R T
I have a litho image (black & white pixels only) and I want to make all the white pixels transparent. I am using Quartz 2d to display the image and I have a Quartz composition containing a single .cikernel... kernel vec4 whiteToTransparent(sampler source_image) { vec4 pixValue; pixValue =

vImage Help

2009-11-14 Thread R T
I'm using... vImage_Error err = vImageContrastStretch_Planar8 (&src, &dest, flags ); and getting a scrambled image from the code? Each pixel returned is at the right height but offset left 3 pixels. Anyone wanting to you to look the images email me. - (NSImage*)vImageContrastStretch:(NSImage

Re: Core Data Entity object

2008-08-28 Thread R T
ubject: Re: Core Data Entity object > To: [EMAIL PROTECTED] > Cc: "Cocoa-dev List" > Date: Tuesday, August 26, 2008, 5:55 AM > On Tue, Aug 26, 2008 at 8:43 AM, R T > <[EMAIL PROTECTED]> wrote: > > Actually, there is a choice in the IB Library, under > 'O

Core Data Entity object

2008-08-25 Thread R T
A Core Data Entity object added to a XIB on a sheet of a document window is created but the add & remove buttons are not highlighted. Why? Thanks Rick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Core Data Question 1

2008-08-24 Thread R T
On Aug 19, 2008, at 21:39, R T wrote: > I have a Core Data Document-based Application.a document window > with a tableview, a text view and a button. When the button is > selected, a number is read from the text field and that many > objects are programatically added to t

Core Data Question 1

2008-08-19 Thread R T
I have a Core Data Document-based Application.a document window with a tableview, a text view and a button. When the button is selected, a number is read from the text field and that many objects are programatically added to the tableview. Then a sheet is opened. The tableview presents only

Core Data, xcdatamodel

2008-08-16 Thread R T
>From the xcdatamodel of a "Core Data Document-based Application", I have two >entities... 1st one entity is a set of rgb values. 2nd the other entity is a collection of these sets. ... so the add button of the 1st entity should not be available until an object of the 2

Programmatic removal of an object..

2008-08-13 Thread R T
Using Core Data, my xcdatamodel has 1 entity (NSManagedObject) with 10 attributes. I need to add and remove the objects programmatically (not by buttons). I have... IBOutlet NSArrayController *ParamsNResults; IBOutlet NSTableView *ParamsNResultsTableView; ...and have created