SOLVED: Document Icon won't change

2012-12-23 Thread Jerry Krinock
While fixing this problem, I found quite quite a few people with the same issue in the list archives. Problem: Want to change the document icon for an app. Success is indicated when the new icon shows in Finder windows, and in the title bar of document windows. Expected Steps: • Produce 1024

NSPopover will not morph or resize

2012-12-23 Thread Gordon Apple
I¹m having a few issues with NSPopover. ³animates² is the default, but is explicitly set anyway. I have a tear-off window that instantly comes up where it wants when the popover is clicked. It does not morph. Also, it leaves the popover up, although I now explicitly close if when the window lau

Re: SOLVED: Document Icon won't change

2012-12-23 Thread Shane Stanley
FWIW, you might try duplicating the built app in the Finder. I've had similar problems changing AppleScript applet icons, and that seems to force whatever needs to be updated to be updated. -- Shane Stanley 'AppleScriptObjC Explored' ___ Cocoa-de

Re: SOLVED: Document Icon won't change

2012-12-23 Thread Jerry Krinock
On 2012 Dec 23, at 16:30, Shane Stanley wrote: > FWIW, you might try duplicating the built app in the Finder. I've had similar > problems changing AppleScript applet icons, and that seems to force whatever > needs to be updated to be updated. Next time, Shane. I'm not going to try and change

Re: NSPopover will not morph or resize

2012-12-23 Thread Gordon Apple
Bug 12930212 filed. Popover not resizing is shown in simple modification of Popover sample code project. Haven¹t found answer on failure to morph. Works in sample code. Our content view is considerably more complex. Something is defeating it. On 12/23/12 5:06 PM, "Gordon Apple" wrote: > I¹m ha

Low-level text, why so hard?

2012-12-23 Thread Graham Cox
I need to use Quartz to draw a single character - a check mark - in a graphics context. I don't need anything elaborate, no typesetting etc, I just want to draw a single checkmark. However, Quartz seemingly makes the trivial very difficult. Why for example, does this code not work? Specifically

Re: Low-level text, why so hard?

2012-12-23 Thread Quincey Morris
On Dec 23, 2012, at 21:32 , Graham Cox wrote: > C'mon, this has got to be easy, hasn't it? Before iOS 6, the go-to cross-platform string drawing would be CoreText. For something like what you described, I'd suggest you look here: https://developer.apple.com/library/mac/#documentation/

Window resizing autolayout?

2012-12-23 Thread Antonio Nunes
I asked this question a little while back, but probably not in a clear or smart way. I hope I can explain what I need better this time. In the process of localising my app, i find that I need some sheets and some popovers to have different sizes, depending on the user's chosen language. Mostly,

Re: Low-level text, why so hard?

2012-12-23 Thread Jens Alfke
On Dec 23, 2012, at 9:32 PM, Graham Cox wrote: > However, Quartz seemingly makes the trivial very difficult. Why for example, > does this code not work? Specifically, it returns 0 from > CGFontGetGlyphWithGlyphName meaning that the glyph name is unknown. The CGText APIs might be too low-level

Re: Window resizing autolayout?

2012-12-23 Thread Quincey Morris
On Dec 23, 2012, at 22:44 , Antonio Nunes wrote: > Currently, in awakeFromNib, I adjust all user facing interface elements to > the target language, and I had hoped that with wider, and sometimes higher > controls, the containing sheet/popover would automatically resize to > compensate for the

Re: Low-level text, why so hard?

2012-12-23 Thread Kyle Sluder
On Sun, Dec 23, 2012, at 09:32 PM, Graham Cox wrote: > I need to use Quartz to draw a single character - a check mark - in a > graphics context. I don't need anything elaborate, no typesetting etc, I > just want to draw a single checkmark. By far the simplest approach here is going to be to make a

Re: Window resizing autolayout?

2012-12-23 Thread Kyle Sluder
On Sun, Dec 23, 2012, at 11:25 PM, Quincey Morris wrote: > It seems to me that changing the UI elements in awakeFromNib probably > isn't enough, since that doesn't tell the layout system that something > has changed. Changing the text of a label will cause it to call [self invalidateIntrinsicConte

Re: NSPopover will not morph or resize

2012-12-23 Thread Kyle Sluder
On Sun, Dec 23, 2012, at 03:06 PM, Gordon Apple wrote: > Another issue is that the popover will not resize when its content view > size > changes. It does come up initially in the right size. I even tried > subclassing NSPopover, put an observer on the content view frame, then > set > contentSize