That was a spelling mistake, it was meant to say NSMutableParagraphStyle.
I've tried doing this …
CGFloat spacing = 5.0f;
NSMutableParagraphStyle *paragraphStyle;
[paragraphStyle init];
[paragraphStyle setLineSpacing:spacing];
[paragraphStyle setMinimumLineHeight:spacing];
On 01/01/2010, at 7:10 PM, Joshua Garnham wrote:
That was a spelling mistake, it was meant to say NSMutableParagraphStyle.
I've tried doing this …
CGFloat spacing = 5.0f;
NSMutableParagraphStyle *paragraphStyle;
[paragraphStyle init];
Well, this is just not how you allocate
QTCaptureView is almost certainly internally using something along the lines of
OpenGL internally to draw onscreen with acceptable performance. This means you
can't draw on top of it with standard Cocoa drawing techniques. The options:
A) Use an overlay window
B) Implement the
On 31 Dec 2009, at 07:03, Shane Stanley wrote:
The documentation says:
The format for an accessor method that returns a property is -key. The
-key method returns an object, scalar or a data structure. The alternate
naming form -isKey is supported for Boolean properties.
A small number
Oh, I see. That works partly. The text that is already in the NSTextView at
launch has the new Line Height but as soon as you start to type the line your
typing on resets it's line height to default.
From: Graham Cox graham@bigpond.com
To: Joshua Garnham
Check out NSTextView's setTypingAttributes: method. And look up
the meaning of NSParagraphStyleAttributeName. It's really not
so hard...
Paul Sanders.
- Original Message -
From: Joshua Garnham joshua.garn...@yahoo.co.uk
To: Graham Cox graham@bigpond.com
Cc:
On Dec 31, 2009, at 10:55 PM, James Jennings wrote:
3) Is there another way to make my braille look heavier?
I'd suggest to overprint the text, in other words, draw the string twice in
the same operation.
Hope that helps,
Leonardo Borsten
___
Hello. I have been trying to do this, without results.
First Im using the method NSDrawNinePartImage to draw the box that appears
when click an item, this receives NSImages, so I thought that applying a
CIfilter to a CIImage then converting the CIImage into a NSImage and send to
the
On Fri, Jan 1, 2010 at 8:37 AM, Gustavo Pizano
gustavxcodepic...@gmail.com wrote:
I dunno if my thoughts are in the right way, or no.. If so.. then .. how can
I achieve it? I mean how can I take whats under the frame of the menu?
The correct way to do it unfortunately involves private API.
OUCH!!!
that hurts! :(.
I will look for the examples to get snapshot of the window and see... so
getting the snapshot, then I apply the CIFilter, and the I render the image
behind the menu... isn't it?
Thanks
Gustavo
On Jan 1, 2010, at 6:28 PM, Kyle Sluder wrote:
On Fri, Jan 1, 2010 at
On 31 Dec 2009, at 22:26, David Blanton wrote:
Given an array of color data (a generic bitmap) what is the best / fastest /
recommended method to convert this to an NSImage?
Strictly speaking, the quickest way to generate an NSImage object would be to
create an NSImageRep that knows how to
One caveat:
-performSelector:withObject:afterDelay: is defined in the NSObject class, not
the NSObject protocol. Since most delegates are defined these days like so:
@protocol MyDelegate NSObject
...
@end
there is no guarantee the delegate itself will be able to handle
Thanks. Food for thought.
I will be dealing with converting these bitmaps as the user does mouse
stuff in a view, like dragging it around or grabbing sizing handles.
I will be sending the move data to our underlying portable code, that
code renders a new bitmap and hands it to me for
* accessors starting with getXXX usually expect pointers to
something and return their results into space pointed to, IIRC.
* accessors starting with isXXX return BOOL.
* all other KVC accessors return primitive data types (including data
structures such as NSRect, NSPoint, etc...) and
On 1 jan 2010, at 08.37, Gustavo Pizano wrote:
First Im using the method NSDrawNinePartImage to draw the box that appears
when click an item, this receives NSImages, so I thought that applying a
CIfilter to a CIImage then converting the CIImage into a NSImage and send to
the
Joar hello.
mmm.. well.. Its a custom NSView, which is drawing all 9 images to generate the
menu bounds, same as in the Dock, Im trying to recreate that menu for my
application. All images are are .png with transparency value. So its not an
NSMenu, because this custom menu Im displaying when
I want to draw an NSWindow that looks similar to this:
http://vibealicious.com/site/apps/notify/screenshots/mainUIFull.png
In that it has a typical NSWindow appearance with the bottom bar and such, but
instead of a title bar at the top, I want to draw a little arrow.
Is there a simple way to
On 1/1/10 11:15 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote:
Are you saying you want a synthesized -key method, and then also write an
-isKey method?
Sort of... What I'm actually trying to do is write a getter in
AppleScriptObjectiveC.
When you declare a property in ASObjC, it seems
David,
I think you may want to read Henry's answer again. The path going through
NSBitmapImageRep and NSImage that he recommends doesn't involve any
CGBitmapContexts or CGImageRefs. Well, at least not in any code you write :-)
-- Uli Kusterer
The Witnesses of TeachText are everywhere...
At 2:49 PM +0100 12/31/09, B.Ohr wrote:
ps = ABPerson.alloc.initWithVCardRepresentation(data) #
MacRuby syntax ;-)
the generated person is added automatically to the AdressBook
database, in opposite to:
ps = ABPerson.alloc.init # not added
I understand that one advantage of using a task rather than a thread is a task
can crash without taking down the main app. I decided to try that. I made a
little command-line program that deliberately crashes by infinite recursion,
and a Cocoa app that runs it using NSTask. The problem is
On 02/01/2010, at 7:04 AM, PCWiz wrote:
Is there a simple way to do this? Do I have to draw the entire window by hand
(bottom bar and all) ? Or can I slightly modify the existing NSWindow layout
to just draw that arrow at the top? Thanks
You could possibly fake the title bar by using a
On Jan 1, 2010, at 6:43 PM, James W. Walker wrote:
I understand that one advantage of using a task rather than a thread is a
task can crash without taking down the main app. I decided to try that. I
made a little command-line program that deliberately crashes by infinite
recursion, and a
On Jan 1, 2010, at 6:04 PM, Ken Thomases wrote:
Try turning off Auto-attach debugger on crash in the executable's settings
(the executable in the sense of Xcode's representation of your app's
executable, in its project).
I believe that Xcode may actually be attaching to the child process
Hey All, quick question,
I wrote a simple macro to make memory cleanup a bit easier, but I ran
into something I'm not sure why is happening..
here's the macro:
NS_INLINE void GDRelease(id obj) {
[obj release];
obj=nil;
}
I use it like:
- (void) dealloc {
On Fri, Jan 1, 2010 at 10:01 PM, aaron smith
beingthexemplaryli...@gmail.com wrote:
Hey All, quick question,
I wrote a simple macro to make memory cleanup a bit easier, but I ran
into something I'm not sure why is happening..
here's the macro:
NS_INLINE void GDRelease(id obj) {
Yeah, I understand the path and like it because it is much cleaner.
Thanks for the remarks.
On Jan 1, 2010, at 2:47 PM, Uli Kusterer wrote:
David,
I think you may want to read Henry's answer again. The path going
through NSBitmapImageRep and NSImage that he recommends doesn't
involve any
On 2009 Dec 05, at 22:43, Jerry Krinock wrote:
I tested a new build of an app today and found that, all of a sudden,
clicking the + button for a table view adds a new object but no longer
selects it.
The problem was that I was invoking the array controller's -newObject, *then*
inserting
How would I use that?
From: Paul Sanders p.sand...@alpinesoft.co.uk
To: Joshua Garnham joshua.garn...@yahoo.co.uk; Graham Cox
graham@bigpond.com
Cc: cocoa-dev@lists.apple.com
Sent: Fri, 1 January, 2010 15:09:47
Subject: Re: Setting the Line Height/ Line
29 matches
Mail list logo