Re: Popover arrow point never properly aligned
I would check the sourceRect property on UIPopoverPresentationController. If you want precise control over the positioning, then you may need a custom view in a UIBarButton. You can calculate the position and update the sourceRect accordingly. -logan > On May 26, 2016, at 7:08 PM, Rick Mannwrote: > > I'm presenting a popover from a UINavigationBar UIBarButtonItem. The point of > origin of the popover never seems to come out of the center of the > UIBarButtonItem. The code I'm using is: > > @IBAction > func > shareModel(inSender: AnyObject) > { >if let model = self.model >{ >let source = ModelShareActivitySource(model) >let avc = UIActivityViewController(activityItems: [source], > applicationActivities: nil) >avc.popoverPresentationController?.barButtonItem = self.shareButton >presentViewController(avc, animated: true, completion: nil) >} > } > @IBOutlet weak var shareButton: UIBarButtonItem! > > Is anyone else seeing this? > > -- > Rick Mann > rm...@latencyzero.com > > > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/logancautrell%40ftml.net > > This email sent to logancautr...@ftml.net ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
StoreKit sandbox question
We've previously integrated with iAds. While testing ADBannerView, I noticed in the sandbox that the bannerView:didFailToReceiveAdWithError: delegate method would intermittently be called. It would fail on one to two minute intervals and then start indicating content was available. I assumed that this was as designed for the sandbox to allow failure condition testing. In fact it was quite handy because I could use my proxy to blacklist the URL and force it to stop working. I was unable to find this in the docs to verify it would do this. Now that we are setting up in app purchases, I'm wondering if there is something similar. When I install a cleaned debug build on a device the SKProductsRequest works as expected. However after running for a while during testing the delegate method productsRequest:didReceiveResponse: starts getting invalidProductIdentifiers. The products are valid prior to this, with no changes in iTunes Connect. Cleaning the build device and rebooting the test device make this behavior go away. Am I running into something that is expect sandbox behavior? Is it documented? Should I file a bug report? -logan___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Book Cocoa programming for Mac OS X Third Edition
Cocoa Design Patterns is awesome after you get through those. Sent from my iPhone On Mar 11, 2011, at 10:56 AM, Todd Heberlein todd_heberl...@mac.com wrote: I concur: Cocoa Programming for Mac OS X (3rd edition) and Programming in Objective-C 2.0 (2nd edition) are the two books I go to the most and recommend for people getting started. Once you've have some experience, then the Apple online documentation is pretty good. In particular, when you look at an Objective-C class description, in the column on the left there is often a document (or several) that describes the broader concepts, how this class relates to others, and provides snippets of code showing how to use the class. I often skim these first and then come back to the class description. Just make sure you are looking at the documentation for the right platform (iOS vs Mac). I also have numerous other books, including Cocoa Recipes for Mac OS X (2nd edition). You can never have too many programming books. One word of warning: the screen shots and detailed description for using Xcode and IB will almost always be at least slightly wrong because Apple is continuously updating their tools. Todd On Mar 11, 2011, at 7:03 AM, Eric Gorr wrote: On Mar 11, 2011, at 9:52 AM, David Remacle wrote: I have see on amazon the book Cocoa programming for Mac OS X third Edition of Aaron Hillegass. Is this a good book for beginner ? Yes! It's the best book for a beginner learning Cocoa. Which books for objective-C 2.0/Cocoa do you recommend for beginner ? I might also recommend: Programming in Objective-C 2.0 (2nd Edition) [Paperback] Stephen G. Kochan (Author) • ISBN-10: 0321566157 • ISBN-13: 978-0321566157 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/logancautrell%40ftml.net This email sent to logancautr...@ftml.net ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
NSManagedObjectModel
Im programmatically generating an NSManagedObjectModel (based on a web service). I am aware of the potential risks in doing this and have known issues and contingencies planned for. My question is how do I persist changes to the model? The MOC that I create from the model persists properly, but I am not clear on how I can persist changes to the model. There does not appear to be a built-in way of doing so. I am prepared to save the appropriate information and regenerate the MOM at runtime, but I was curious if there is a way for me to persist changes using the framework. -logan___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSManagedObjectModel
For the record, I found using NSKeyedArchiver and it's companion to work quite well in saving my generated MOM. I simply serialize the MOM into my app's documents directory after I have generated it. I then deserialize it as needed during subsequent application sessions. -logan On Oct 28, 2009, at 4:56 PM, Logan Cautrell wrote: Im programmatically generating an NSManagedObjectModel (based on a web service). I am aware of the potential risks in doing this and have known issues and contingencies planned for. My question is how do I persist changes to the model? The MOC that I create from the model persists properly, but I am not clear on how I can persist changes to the model. There does not appear to be a built-in way of doing so. I am prepared to save the appropriate information and regenerate the MOM at runtime, but I was curious if there is a way for me to persist changes using the framework. -logan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com