Odd bug in HIThemeDrawWindowFrame on a retina display

2014-09-26 Thread John Weeks
I need to draw a bitmap image of a utility window title bar. I am using HIThemeDrawWindowFrame to draw into a CGBitmapContext at double resolution. I am testing this code on OS X 10.9.4 using a fake retina display (Displays settings, Resolution: Scaled, selecting a (HiDPI) setting). On the

Showing Application Credits

2014-09-26 Thread SevenBits
Hello there, I’m curious about one thing. For one of my applications, I need to show the license for the application. In my About window, I have a button which you can click to open the acknowledgments and open source licenses, etc in TextEdit. The problem with TextEdit, though, is that the

Re: Showing Application Credits

2014-09-26 Thread Kyle Sluder
On Fri, Sep 26, 2014, at 03:59 PM, SevenBits wrote: So, what can I realistically do? Because of the formatting, I need to use RTF format to display the documents. Any suggestions from the Cocoa crusaders? ;) Just use a panel with a standard NSTextView. You can create an NSAttributedString

XC Unit tests issues with Core Data

2014-09-26 Thread Rick Mann
I'm trying to set up a unit test to exercise parts of my iOS app's code, which includes Core Data code. The test case does not run with the app as Test Host. My test case copies the test data to a temporary directory, loads the Core Data stack using the test cases' class bundle and pointing to

dismissViewControllerAnimated bug in ios 8

2014-09-26 Thread Herman Chan
Hi all, My set up is this. 1. present a view controller by calling presentViewController 2. in the presented view controller (modal), I create a UITextView and set it to be first responder when view has appeared. 3. set up the leftbarNavItem to call dismissViewControllerAnimated (at this