Insetting a UIWebView while a keyboard is on screen

2014-05-27 Thread Nick Zitzmann
Short question: What's the best way to scroll a UIWebView slightly from its current position when there's a keyboard present? I already tried -[UIScrollView setContentInset:], but that does not work when a keyboard is on screen. Long question: I have a UIWebView, and I'm trying to graft a cust

Limit on CGImageDestination?

2014-05-27 Thread John Brownie
I'm trying to capture the icon information for the current keyboard input source, using the following code: IconRef keyboardIcon = TISGetInputSourceProperty(currentInputSource, kTISPropertyIconRef); if (keyboardIcon != NULL) { NSImage *iconImage = [[NSImage alloc]

Re: Black treatment showing when an iOS 7 only application is in the background

2014-05-27 Thread Alex Zavatone
On May 27, 2014, at 5:17 PM, Ben Kennedy wrote: > On 27 May 2014, at 11:52 am, Alex Zavatone wrote: > >> But, it appears that even when using "Inferred" for view controllers' >> Simulated Metrics, Inferred is being ignored and is being replaced with >> Black Opaque. > > I thought that the

Re: EXC_BAD_ACCESS in NSData

2014-05-27 Thread Graham Cox
On 28 May 2014, at 5:52 am, Charles Srstka wrote: > a) 'bar' is a later addition to the file format, added some time after the > app was ported to Intel, and thus is in little-endian format whereas the > older parts of the file are in big-endian (and yes, I've seen formats that do > this), or

Re: EXC_BAD_ACCESS in NSData

2014-05-27 Thread Jens Alfke
On May 27, 2014, at 12:08 PM, Greg Parker wrote: > Untested code is incorrect code. Don't write endian-swapping code that you > can't test because you aren't using any other-endian platforms today. I disagree. There is a strong, longstanding convention for cross-platform binary data formats

Re: Black treatment showing when an iOS 7 only application is in the background

2014-05-27 Thread Ben Kennedy
On 27 May 2014, at 11:52 am, Alex Zavatone wrote: > But, it appears that even when using "Inferred" for view controllers' > Simulated Metrics, Inferred is being ignored and is being replaced with Black > Opaque. I thought that the "simulated metrics" stuff in IB were exactly that -- simulat

Re: EXC_BAD_ACCESS in NSData

2014-05-27 Thread Greg Parker
On May 27, 2014, at 12:52 PM, Charles Srstka wrote: > On May 27, 2014, at 2:08 PM, Greg Parker wrote: >> On May 26, 2014, at 8:28 PM, Charles Srstka wrote: >>> On May 26, 2014, at 7:43 PM, Uli Kusterer >>> wrote: Regarding endian-swapping, that depends on the file format. If you wrote >>

Re: EXC_BAD_ACCESS in NSData

2014-05-27 Thread Charles Srstka
On May 27, 2014, at 2:08 PM, Greg Parker wrote: > On May 26, 2014, at 8:28 PM, Charles Srstka wrote: >> On May 26, 2014, at 7:43 PM, Uli Kusterer >> wrote: >>> Regarding endian-swapping, that depends on the file format. If you wrote >>> that file yourself, you don’t usually need to do any swa

Re: EXC_BAD_ACCESS in NSData

2014-05-27 Thread Greg Parker
On May 26, 2014, at 8:28 PM, Charles Srstka wrote: > On May 26, 2014, at 7:43 PM, Uli Kusterer > wrote: >> Regarding endian-swapping, that depends on the file format. If you wrote >> that file yourself, you don’t usually need to do any swapping. > > That's true. For example, back in the PowerP

Black treatment showing when an iOS 7 only application is in the background

2014-05-27 Thread Alex Zavatone
We have several (9) iOS 7 iPhone apps in a workspace that I can open up in Xcode 5.x, and run on our devices. All good. But, it appears that even when using "Inferred" for view controllers' Simulated Metrics, Inferred is being ignored and is being replaced with Black Opaque. Sometimes. What'

Re: Notification Center

2014-05-27 Thread Kyle Sluder
> On May 27, 2014, at 1:20 PM, 2551 <2551p...@gmail.com> wrote: > > Moreover, the pair that don't work DO show in the Notification Center > sidebar/panel, so I know the code is good, but for reasons I can't get to the > bottom of, the banners just don't show. Why would some show but others not?

Notification Center

2014-05-27 Thread 2551
I'm officially flumoxed. My app has a number of methods that send notifications to Notifications Center. All of them work, except for a pair in one method (there's a success/fail pair attached to an if/else clause in each case). The code is identical (they're all derived from the same code sni

Re: Figuring out the file's owner class

2014-05-27 Thread Ken Thomases
On May 27, 2014, at 10:23 AM, Mills, Steve wrote: > On May 23, 2014, at 19:28:32, Ken Thomases wrote: > >> I doubt it's possible to learn the design-time-specified class from the >> objects of the loaded NIB. The technique you outline doesn't make sense. >> The window from the NIB won't have

Re: Figuring out the file's owner class

2014-05-27 Thread Mills, Steve
On May 23, 2014, at 19:34:10, Graham Cox wrote: > If what you're really trying to do is to store a class in the nib such that > you can use that to instantiate the right kind of object for FO, I would say > that you're doing it wrong (™). What you probably want is some way in your > code to ma

Re: Figuring out the file's owner class

2014-05-27 Thread Mills, Steve
On May 23, 2014, at 19:28:32, Ken Thomases wrote: > I doubt it's possible to learn the design-time-specified class from the > objects of the loaded NIB. The technique you outline doesn't make sense. > The window from the NIB won't have a controller if the controller was File's > Owner and yo

unsubscribe

2014-05-27 Thread Ben Kazez
On May 27, 2014, at 3:41 PM, cocoa-dev-requ...@lists.apple.com wrote: > Send Cocoa-dev mailing list submissions to > cocoa-dev@lists.apple.com > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.apple.com/mailman/listinfo/cocoa-dev > or, via email, send a me

Re: NSPopover + Bindings + Validation = Weirdness

2014-05-27 Thread Keary Suska
On May 26, 2014, at 8:10 AM, Jonathan Mitchell wrote: > > On 26 May 2014, at 14:50, Keary Suska wrote: > >> >> The bug is triggered when trying to display a sheet on a popover window, so >> even if I capture error presentation I would still have to present a modal >> alert of some kind. I w

Re: AVFoundation video not playing in root mode

2014-05-27 Thread Kyle Sluder
On May 27, 2014, at 6:08 AM, Navneet Kumar wrote: > > Hi, > > The code I’m using is as follows: (it works well and videos plays when logged > in as admin user, but doesn’t play when the app is run as root): Please stop trying to run your application as root. If Apple wanted to support this co

AVFoundation video not playing in root mode

2014-05-27 Thread Navneet Kumar
Hi, The code I’m using is as follows: (it works well and videos plays when logged in as admin user, but doesn’t play when the app is run as root): In awakeFromNib: [[avPlayerView layer] setBackgroundColor:CGColorGetConstantColor(kCGColorClear)]; // Create the AVPlayer, add rate

Re: Understanding ARC

2014-05-27 Thread Jamie Ojomoh
> YOU ARE OVERTHINKING THIS. Stop trying to figure out when things are getting released — that’s ARC’s job. Just write your code. That's what my dad said, but I though he just didn't know what the real answer was. Thank you for your helps. On Sun, May 25, 2014 at 5:46 PM, Jens Alfke wrote: >