How would I use that?
From: Paul Sanders
To: Joshua Garnham ; Graham Cox
Cc: cocoa-dev@lists.apple.com
Sent: Fri, 1 January, 2010 15:09:47
Subject: Re: Setting the Line Height/ Line Spacing in an NSTextView.
Check out NSTextView's setTypingAttributes: method
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*
inserti
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 C
On Fri, Jan 1, 2010 at 10:01 PM, aaron smith
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) {
> [obj release];
> ob
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 {
GDRelease(myObject)
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
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, an
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
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 tha
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
ABAddressBook.sharedAddressBook.a
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..."
http
On 1/1/10 11:15 PM, "Mike Abdullah" wrote:
> Are you saying you want a synthesized - method, and then also write an
> -is 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 accessors are synthesized
autom
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 d
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 c
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 NSDrawN
* 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 o
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 disp
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
...
@end
there is no guarantee the delegate itself will be able to handle
-performSelector:withObject:afte
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
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 8:
On Fri, Jan 1, 2010 at 8:37 AM, Gustavo Pizano
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.
(Searching for the logical
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 NSDrawNin
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
___
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"
To: "Graham Cox"
Cc:
Sent: Friday, January 01, 2010 12:35 PM
Subject: Re: Setting the
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
To: Joshua Garnham
Cc: cocoa-dev@lists.ap
On 31 Dec 2009, at 07:03, Shane Stanley wrote:
> The documentation says:
>
> "The format for an accessor method that returns a property is -. The
> - method returns an object, scalar or a data structure. The alternate
> naming form -is is supported for Boolean properties."
>
> A small number of
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 -view:willDisplay
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 allo
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];
29 matches
Mail list logo