Re: Cocoa-dev Digest, Vol 16, Issue 1

2019-01-15 Thread Vince DeMarco
ocoa-dev-requ...@lists.apple.com >> >> You can reach the person managing the list at >> cocoa-dev-ow...@lists.apple.com >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of Cocoa-dev digest..." >> &g

Re: UIImagePickerController and 48-bit photos

2019-01-15 Thread Vince DeMarco
> On Jan 15, 2019, at 12:08 PM, Carl Hoefs > wrote: > > I've been tasked with scoping out creating an iPhone app that processes > "48-bit" images or photos on the newer iPhones. (I unfortunately don't have a > "newer" iPhone yet to try this out.) > > Questions: > > - Does the

Re: NSImage to JPEG file?

2019-01-14 Thread Vince DeMarco
Use ImageIO. create a CGImageDestinationRef and add the CGImage to it. Vince > On Jan 14, 2019, at 12:17 PM, Carl Hoefs > wrote: > > I have a background macOS daemon process (aka Foundation-based "command line > tool") that needs to write out a JPEG file to local disk. The image resides

Re: Size of compiled NIBs in Xcode 9 (10.13 SDK)

2018-01-24 Thread Vince DeMarco
There isn't, if you would like one please file a bug with apple requesting this. Vince > On Jan 24, 2018, at 1:24 PM, Alex Zavatone wrote: > > I think I may have asked this before, but is there a tool or command line > available to unpack these assets.car files so that we can

Re: Size of compiled NIBs in Xcode 9 (10.13 SDK)

2018-01-24 Thread Vince DeMarco
Please file a bug with apple, and post the radar number here. Please include a simple test project that shows the nib changes. Vince > On Jan 24, 2018, at 1:23 PM, Dragan Milić wrote: > > On Jan 24, 2018, at 20.56, Jeremy Hughes wrote: > >> Vince has explained why it does

Re: Size of compiled NIBs in Xcode 9 (10.13 SDK)

2018-01-24 Thread Vince DeMarco
Looking at the info. The size is larger because the application icons are now included in the Assets.car file. When you target a newer version of OSX, the icons will NOT be stored as .icns files in the file package but instead they will be in the assets.car file Vince > On Jan 24, 2018, at

Re: Avoiding color transformations in PNG/UIImage/CGImage ops?

2017-11-17 Thread Vince DeMarco
> On Nov 17, 2017, at 1:45 PM, Rick Mann <rm...@latencyzero.com> wrote: > > > >> On Nov 17, 2017, at 13:36 , Vince DeMarco <dema...@apple.com> wrote: >> >> >> >>> On Nov 17, 2017, at 1:28 PM, Rick Mann <rm...@latencyzero.com

Re: Avoiding color transformations in PNG/UIImage/CGImage ops?

2017-11-17 Thread Vince DeMarco
> On Nov 17, 2017, at 1:28 PM, Rick Mann wrote: > > Nope, I'm definitely looking at pixel data. But I'll try the generic color > space. I don't know how it chooses device color space when it's created > absent any particular display-associated context. Don't use the

Re: Getting immutable UIImage data pointer without copy?

2017-11-15 Thread Vince DeMarco
The best way would be to use vImage and make a vImage_Buffer from a CGImageRef. look at the documentation for vImageBuffer_InitWithCGImage() vImage might end up doing the image conversion you need to do as a bonus. the vImage API is kind of different, but once you figure out how to use it, you

Re: kABHomeLabel … and companions

2012-09-21 Thread Vince DeMarco
On Sep 13, 2012, at 7:45 PM, Erik Stainsby erik.stain...@roaringsky.ca wrote: Hello folks, So the AddressBook framework's xxxLabel keys render out as strings encoded like so: _$!Home!$_, _$!Work!$_, _$!Mobile!$_ Is there framework method I am meant to use with the property keys

Re: CGContextSelectFont spinlock

2010-09-15 Thread Vince DeMarco
On Sep 15, 2010, at 4:11 PM, Stevo Brock wrote: Apparently the font system was not initialized before this call. Putting a [UIFont familyNames] somewhere previous causes things to roll just fine. I should mention that this is an OpenGL based app with minimal other system UI. -Stevo