Re: Visible difference in text: NSTextField vs drawInRect:

2017-04-11 Thread Quincey Morris
On Apr 11, 2017, at 08:32 , Navneet Kumar wrote: > >> 4. Anti-aliasing. There is some behind the scenes magic when drawing text, >> that determines whether it knows the background color and therefore whether >> it anti-aliases using the background color. >> > Tried anti-aliasing, explicitly tu

Re: Sierra Document Handling

2017-04-11 Thread Richard Charles
> On Apr 6, 2017, at 5:37 PM, Kyle Sluder wrote: > > If you encounter a bug, please file a bug report. Filed bug report 31560971 SharedFileList Debug Logging. > On Apr 6, 2017, at 7:47 PM, John Brownie wrote: > > I saw this issue last October, and filed bug 28977266. I then had this > respo

Re: Visible difference in text: NSTextField vs drawInRect:

2017-04-11 Thread Jens Alfke
> On Apr 11, 2017, at 9:49 AM, Gary L. Wade > wrote: > > If you need lightweight drawing, you could use an NSTextFieldCell, which > should give you some predictability. I don't recall the details, but there > are a number of things that NSTextField does (and NSTextView) that aren't > done wi

Re: Visible difference in text: NSTextField vs drawInRect:

2017-04-11 Thread Gary L. Wade
If you need lightweight drawing, you could use an NSTextFieldCell, which should give you some predictability. I don't recall the details, but there are a number of things that NSTextField does (and NSTextView) that aren't done with "raw" drawing (borders, margins, font resizing, etc.) -- Gary L.

Re: Visible difference in text: NSTextField vs drawInRect:

2017-04-11 Thread Navneet Kumar
Yes, I tried inside drawRect:, both YES and NO. The effect was still there. Thanks, Navneet Sent from my iPhone > On 11-Apr-2017, at 9:31 PM, gerti-cocoa...@bitart.com wrote: > > Did you try the > >CGContextRefctx=(CGContextRef)[[NSGraphicsContext > currentContext]graphicsPort]; >

Re: Visible difference in text: NSTextField vs drawInRect:

2017-04-11 Thread gerti-cocoadev
Did you try the CGContextRefctx=(CGContextRef)[[NSGraphicsContext currentContext]graphicsPort]; CGContextSetShouldSmoothFonts(ctx,YES); stuff inside the -drawRect: method? That is where it needs to be. Try both YES and NO. Should be a visible difference. Gerd > O

Re: Visible difference in text: NSTextField vs drawInRect:

2017-04-11 Thread Navneet Kumar
Hi, Here is another image with a character in each case zoomed in using ColorMeter. http://i66.tinypic.com/2w5m795.jpg Wishes, Navneet > On 11-Apr-2017, at 2:00 AM, Quincey Morris > wrote: > > On Apr 10, 2017, at 11:20 , Navneet Kumar > wrote: >> >> Actually I’m u

Re: Cocoa-dev Digest, Vol 14, Issue 124

2017-04-11 Thread Kevin Hardman
FWIW: I see the same problem, though, for slightly different circumstances. My suspicion is that since LSSharedFileListItemRemove and friends have been deprecated since 10.11 that someone is trying to track down code still using the underlying classes. I recommend opening a radar (I did). You mi

Re: Visible difference in text: NSTextField vs drawInRect:

2017-04-11 Thread Navneet Kumar
Hi, The image with bigger (21.0 points) Arial font is uploaded here: http://i65.tinypic.com/118g0fl.jpg The effect is clearly visible. The window is of a new small project made to show/resolve this issue only. I can send this small (around 50KB) project via email if you want. Please look at my r

Re: Getting the Version of an Application

2017-04-11 Thread Steve Mills
On Apr 11, 2017, at 08:20:53, Dave wrote: > > Is there any way of getting the version number of an Application if it is NOT > running? Sure, create an NSBundle for it and get the version the usual way. NSBundle* bundle = [NSBundle bundleWithPath:pathToApp]; // Or bundlew

Getting the Version of an Application

2017-04-11 Thread Dave
Hi All, This is a Mac question. Is there any way of getting the version number of an Application if it is NOT running? Thanks a lot All the Best Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or modera