Re: Trouble with code signing and app store submission

2012-03-30 Thread Martin Hewitson
They are all under Login->My Certificates. And I can see them under Login->Keys as well. Perhaps I'll try deleting all my certificates and getting new ones from the Certificate Utility. Martin On Mar 30, 2012, at 08:52 AM, Roland King wrote: > is that key (or those keys) in your 'login->keys

Re: Trouble with code signing and app store submission

2012-03-30 Thread Quincey Morris
On Mar 29, 2012, at 23:41 , Martin Hewitson wrote: > According to Keychain Access, all my certificates have a private key. At > least I can expand the certificate and see the private key. Do I need to do > something to tell Xcode about these? I followed the usual steps of installing > certifica

how to bring Accent pop up at proper place

2012-03-30 Thread Vaibhao Mahore
Hello All, I am working on newly added feature "Press and Hold for Certain Keys " on mac lion for my application .The issue I have been facing is that accent pop up does not come at proper place when user presses and holds down certain keys. Hence ,even if I type text in the middle of docume

Re: Getting the best frame rate for NSView drawing

2012-03-30 Thread jonat...@mugginsoft.com
On 29 Mar 2012, at 18:04, Kyle Sluder wrote: > On Mar 29, 2012, at 5:12 AM, lbland wrote: > >> ... look at the call stack. On the Mac fill most likely calls opengl in the >> end as "Quartz GL" has gotten pretty good. > > Quartz GL is not enabled by default. > > Also, see this: > http://coco

Re: how to bring Accent pop up at proper place

2012-03-30 Thread Ken Thomases
On Mar 30, 2012, at 3:14 AM, Vaibhao Mahore wrote: > I am working on newly added feature "Press and Hold for Certain Keys " on mac > lion for my application .The issue I have been facing is that accent pop up > does not come at proper place when user presses and holds down certain keys. > Henc

Re: Getting the best frame rate for NSView drawing

2012-03-30 Thread Per Bull Holmen
Den 11:52 30. mars 2012 skrev jonat...@mugginsoft.com følgende: > > On 29 Mar 2012, at 18:04, Kyle Sluder wrote: > >> On Mar 29, 2012, at 5:12 AM, lbland wrote: >> >>> ... look at the call stack. On the Mac fill most likely calls opengl in the >>> end as "Quartz GL" has gotten pretty good. >> >>

Re: Getting the best frame rate for NSView drawing

2012-03-30 Thread Per Bull Holmen
Den 13:21 30. mars 2012 skrev Per Bull Holmen følgende: > If you need to use higher level APIs, you need to > use glDrawPixels (which is slw) to transfer the data from an > offscreen NSGraphicsContext/CGContext into the frame buffer object, > THEN draw onto the screen using glBlitFramebuffer.

Setting a mounted volumes icon

2012-03-30 Thread CoGe - Tamas Nagy
Hey List! I trying to set the icon for a mounted volume in my application, without any success with NSWorkspace's setIcon method. Have anybody experience with this, or have an idea what should I try instead? Thanks! Tamas ___ Cocoa-dev mailing list

Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread Jeff Schriebman
I need to display the upwards arrow character in a specific position in a view. The unicode equivalence is U+2B06 and in UTF-8 it is E2 AC 86. I can successfully display it in Xcode on the console using NSLog(@"This is an up arrow character \u2B06"); I have not found a way to use CGContextShowTe

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread Jens Alfke
On Mar 30, 2012, at 9:18 AM, Jeff Schriebman wrote: > I have not found a way to use CGContextShowTextAtPoint to easily display such > a character and the examples I have found using CGContextShowGlyphsAtPoint() > seem to require me to use a font containing the upwards arrow glyph. I'm not fami

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread David Duncan
On Mar 30, 2012, at 9:18 AM, Jeff Schriebman wrote: > I need to display the upwards arrow character in a specific position in a > view. > The unicode equivalence is U+2B06 and in UTF-8 it is E2 AC 86. > > I can successfully display it in Xcode on the console using NSLog(@"This is > an up arrow

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread Douglas Davidson
On Mar 30, 2012, at 9:31 AM, Jens Alfke wrote: > > On Mar 30, 2012, at 9:18 AM, Jeff Schriebman wrote: > >> I have not found a way to use CGContextShowTextAtPoint to easily display >> such a character and the examples I have found using >> CGContextShowGlyphsAtPoint() seem to require me to us

Re: Getting the best frame rate for NSView drawing

2012-03-30 Thread Uli Kusterer
On 28.03.2012, at 09:36, Kenneth Baxter wrote: > For testing purposes, I have a view that is 5,000 x 5,000 and have 100 of my > objects which are placed randomly and size 200 x 400. FWIW, I wrote a little game for a presentation at a conference once: On the page http://macoun.de/material2010 th

Re: NSScrollView automatically changes scroller styles?

2012-03-30 Thread Raleigh Ledet
NSScrollView does various checks to see if the App is trying to put placards in the scroller area. If NSScrollView thinks there are placards, then it reverts back to legacy scrollers for compatibility. Some apps have been known to do this via a sibling view instead of a subview. This is why it i

Re: Can't receive a scrollWheel message in a PDFView subclass

2012-03-30 Thread Raleigh Ledet
There is probably a subview that is intercepting the event. You subclass should override hitTest to return self for specific current events so that it gets first crack at the event. See the Target Gallery sample project. https://developer.apple.com/library/mac/#samplecode/TargetGallery/Introdu

Re: NSScrollView automatically changes scroller styles?

2012-03-30 Thread Nick Zitzmann
On Mar 30, 2012, at 12:10 PM, Raleigh Ledet wrote: > NSScrollView does various checks to see if the App is trying to put placards > in the scroller area. If NSScrollView thinks there are placards, then it > reverts back to legacy scrollers for compatibility. Some apps have been known > to do t

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread Jeff Schriebman
This is what I have figured out so far: According to the Quartz 2D programming guide "Quartz 2D provides a limited, low-level interface for drawing text encoded in the MacRoman text encoding and for drawing glyphs" which probably explains my problem with using CGContextShowTextAtPoint(). I don

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread David Duncan
On Mar 30, 2012, at 11:45 AM, Jeff Schriebman wrote: > I'm not sure how to use the string drawing APIs to directly put a unicode > UTF8 character onto a specific X,Y location given a CGContextRef. Both AppKit and UIKit have methods for making a CGContextRef current. Lookup the NSGraphicsContex

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread Jeff Schriebman
Thanks David. My CGContextRef is the current context. I'm just unfamiliar with how to draw a unicode character into it when I don't know the font containing a specific unicode glyph. I'm doing this for OS X 10.7 which is all I need to support. Thanks. On Mar 30, 2012, at 11:56 AM, David Duncan

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread David Duncan
On Mar 30, 2012, at 12:19 PM, Jeff Schriebman wrote: > Thanks David. > > My CGContextRef is the current context. I'm just unfamiliar with how to draw > a unicode character into it when I don't know the font containing a specific > unicode glyph. > I'm doing this for OS X 10.7 which is all I nee

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread Jeff Schriebman
Still having problems. I've unsuccessfully tried drawAtPoint:withAttributes: but I'm not sure what the best way to accomplish what I need to do. I'm not too familiar with the NSString methods so any advice is appreciated. On Mar 30, 2012, at 12:47 PM, David Duncan wrote: > On Mar 30, 2012, at 12

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread Kyle Sluder
On Mar 30, 2012, at 1:21 PM, Jeff Schriebman wrote: > Still having problems. > I've unsuccessfully tried drawAtPoint:withAttributes: but I'm not sure what > the best way to accomplish what I need to do. I'm not too familiar with the > NSString methods so any advice is appreciated. What aspects

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread Jeff Schriebman
The following code fragment properly displays an up arrow on my view. Thanks for everyone's patience and help. NSDictionary* fontAttrs = [NSDictionary dictionaryWithObjectsAndKeys: [NSColor redColor], NSForegroundColorAttributeName, [NSFont systemFon

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread Jens Alfke
On Mar 30, 2012, at 1:21 PM, Jeff Schriebman wrote: > I've unsuccessfully tried drawAtPoint:withAttributes: but I'm not sure what > the best way to accomplish what I need to do. I'm not too familiar with the > NSString methods so any advice is appreciated. What was unsuccessful? Did you try it

NSTextField Selected Text

2012-03-30 Thread Richard Somers
When tabbing into a text field containing text, the text is selected. When clicking into a text field containing text, the I-beam cursor indicates the insertion point. How can I make clicking into text field containing text, initially select all the text just like tabbing does? Thanks for your

Re: NSTextField Selected Text

2012-03-30 Thread Richard Somers
On Mar 30, 2012, at 3:22 PM, Richard Somers wrote: > When tabbing into a text field containing text, the text is selected. When > clicking into a text field containing text, the I-beam cursor indicates the > insertion point. > > How can I make clicking into text field containing text, initially

Returning a specific key's value for all members of a dict in an array.

2012-03-30 Thread Alex Zavatone
Hi all. I've got an array that has KVP dicts in each record that report a Name property and a GPS string. Is there any lovely one liner that is able to return the values of a specific property for all elements in the array of dicts as an array of those values? Like so: I'd like to go from:

Re: Returning a specific key's value for all members of a dict in an array.

2012-03-30 Thread Charles Srstka
On Mar 30, 2012, at 5:38 PM, Alex Zavatone wrote: > Hi all. > > I've got an array that has KVP dicts in each record that report a Name > property and a GPS string. > > Is there any lovely one liner that is able to return the values of a specific > property for all elements in the array of di

Re: Returning a specific key's value for all members of a dict in an array.

2012-03-30 Thread Alex Zavatone
On Mar 30, 2012, at 7:03 PM, Charles Srstka wrote: > [NSArray valueForKey:] You rule. NSArray *myTemp2Array = [myArray valueForKey:@"Name"]; Thank you sir. - Alex Zavatone ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not po

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread Kevin Bracey
did i miss something, I thought is - (void)drawAtPoint:(NSPoint)point not NSAttributedString not NSString. Cheers kevin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Conta

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread Jeff Schriebman
The final code ended up looking like this NSDictionary* fontAttrs = [NSDictionary dictionaryWithObjectsAndKeys: [NSColor redColor], NSForegroundColorAttributeName, [NSFont systemFontOfSize:12], NSFontAttributeName, nil];

drawRect using a Category

2012-03-30 Thread Peter Teeson
Xcode 4.3 Lion 10.7.3 In a Document app I have an NSMatrix. I only need to override drawRect. Rather than using a sub-class, which seems overkill to me, I decided to try a Category instead. So here's what I did (and it seems to work.) But since this is the first time I've tried such a thing I'm a

Re: drawRect using a Category

2012-03-30 Thread Stephen J. Butler
On Fri, Mar 30, 2012 at 10:31 PM, Peter Teeson wrote: > Rather than using a sub-class, which seems overkill to me, > I decided to try a Category instead. So here's what I did (and it seems to > work.) The problem with this approach is that you've replaced the drawRect: for every NSMatrix instanc

Re: drawRect using a Category

2012-03-30 Thread Jens Alfke
On Mar 30, 2012, at 8:46 PM, Stephen J. Butler wrote: > I wouldn't trust this to be very stable. And I don't see how > subclassing is much more work than this. Agreed. Absolutely do not do this — using categories to change the behavior of existing classes is quite dangerous. Also, why do you n

Problem with NSScrollView and scroll bars

2012-03-30 Thread Leanne Attard
I am quite a newbie in Cocoa and any help would be appreciated. I am currently doing the main application in java and the drawing in opengl. In order to do this I used the cocoa nsview being given by JAWT (java) and added my custom view (Nativeview) to this view. Then i created an NSOpenGLCont