Re: Non-breaking hyphen in UILabel?
On 25 Jan 2014, at 7:27 am, Jens Alfke j...@mooseyard.com wrote: Nor was there a decent built-in text layout framework (OK, this is off-topic, but today's the 30th anniversary of the Mac I'll take your TEHandle and raise you PROCEDURE SetClikLoop... --Graham ___ 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
Re: NSShadow with [bezierPath addClip]
Hi David, After a few days using CGContextBeginTransparencyLayer I have just noticed that the text I draw on a trasparent background with [super drawRect:rect]; // we are in a drawRect: method of a NSTextView looks without antialias. No matter whether I add before CGContextSetAllowsAntialiasing(context, YES); CGContextSetShouldAntialias(context, YES); CGContextSetAllowsFontSmoothing (context, true); CGContextSetShouldSmoothFonts (context, true); CGContextSetAllowsFontSubpixelPositioning(context, YES); CGContextSetShouldSubpixelPositionFonts(context, YES); CGContextSetAllowsFontSubpixelQuantization(context, YES); CGContextSetShouldSubpixelQuantizeFonts(context, YES); If I eliminate CGContextBeginTransparencyLayer, the text gets properly drawn. Do I still miss something? Regards -- Leonardo Da: David Duncan david.dun...@apple.com Data: Wed, 01 Jan 2014 17:44:01 -0800 A: Leonardo mac.iphone@gmail.com Cc: Cocoa-dev cocoa-dev@lists.apple.com Oggetto: Re: NSShadow with [bezierPath addClip] In CoreGraphics the way you would do this is to setup your shadow parameters, then start a transparency layer, do your drawing there, then composite that back to the original context. Something like this: CGContextSetShadow(context, shadowOffset, shadowBlur); CGContextBeginTransparencyLayer(context, NULL); // do your drawing CGContextEndTransparencyLayer(context); You could get the graphicsPort from the NSGraphicsContext to call the transperancy layer methods and otherwise stick to NSGraphics stuff. On Dec 31, 2013, at 4:15 AM, Leonardo mac.iphone@gmail.com wrote: In my NSView subclass, I have to draw an image within a bezierPath and apply an NSShadow to the result. So within the drawRect: method I add [bezierPath addClip]; [mImage drawInRect:inRect fromRect:fromRect operation:NSCompositeSourceOver fraction:mOpacity]; It works. The image gets clipped by the path. Now I would like to apply the NSShadow to the result, so before those lines above I add [bezierPath addClip]; [mShadow set]; [mImage drawInRect:inRect fromRect:fromRect operation:NSCompositeSourceOver fraction:mOpacity]; I can't get the shadow drawn because the bezierPath is clipping the drawing area where the shadow should fall. How to solve this trouble? I have tried to use a layer, but I get weird results when I resize, rotate and modify other parameters of the view. Regards -- Leonardo ___ 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/david.duncan%40apple.com This email sent to david.dun...@apple.com -- David Duncan ___ 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
Re: RSA and libcrypto
On 14 Jan 2014, at 09:42, Charles Srstka cocoa...@charlessoft.com wrote: On Jan 14, 2014, at 3:19 AM, jonat...@mugginsoft.com wrote: The only problem with retaining it is the extra complexity involved in integrating the static library build into the project and upgrading the source. One trick that can help is that OpenSSL is in MacPorts, so you can just set up a symlink to the static library in /opt/local/lib, and then just run /opt/local/port selfupdate and /opt/local/port upgrade outdated every once in a while (or you can just set up a LaunchDaemon to run those commands periodically). This will keep your copy of OpenSSL and libcrypto up to date, at least. Took a while to get around to confirming this but I did use the MacPorts approach - it was simply easier than building libcrypto from source within my project (https://github.com/sqlcipher/openssl-xcode). It should be noted that lib crypto.a has a dependency on libz.a. -lz is therefore required in other linker flags. Jonathan ___ 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
Re: Core Data : Opt Out of SQLite WAL is nullified after File Duplicate ?
On 21 Jan 2014, at 21:24, Jerry Krinock je...@ieee.org wrote: On 2014 Jan 21, at 09:02, Mike Abdullah mabdul...@karelia.com wrote: If it helps, I maintain https://github.com/karelia/BSManagedDocument as a nice way to have a package-based document using Core Data. Thank you, Mike. Now I have two reasons to start using BSManagedDocument :) Also, I have now confirmed the bug with a sample project and filed it, see below. Thanks Jerry. Sadly yes, some sort of migration would be required if you weren’t using a package-based format to start with (if you were, there’s a decent variety of hooks available in BSManagedDocument to customise it to match your existing layout). Presently BSManagedDocument is set up to configure Core Data to use the old-style journal (as I still support 10.6). However, the more I read on the subject, the more I wonder if this is worth it. Since the actual persistent store is kept safely hidden from the user inside of the package, is there actually any harm in using the new style journal, does anybody know? ___ 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
Presenting modal vc repositions root vc
I can't figure this out. I've got a view hierarchy that's been working fine. I added a modal, full-screen tutorial to my storyboard that's triggered on a segue from a button in a popover-contained table view. That works fine, too. Now I'm trying to display the same tutorial the first time the user runs the app. I get it from the root view controller's storyboard, and call -[self presentViewController:animated:completion:] on it. Just before presenting it, I see my entire view hierarchy shrink down (to what might be portrait width in landscape mode; it's a landscape-only app). Elements inside a smaller, too, not just repositioned. After the modal VC is dismissed, you see the shrunken view, then it snaps back to full size, but the UIBarButtonItems stay shrunken. Why is this happening? Why does Apple not test anything any more? -- Rick signature.asc Description: Message signed with OpenPGP using GPGMail ___ 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
How to change status bar appearance for modal full screen VC?
I've got a full-screen modal VC for help in my app. When it's presented from a UIPopover-contained button, it doesn't extend under the status bar, so the status bar has this sickly gray appearance (the tutorial background is white). When presented directly from the root view controller after it appears, the modal VC is presented properly, but other problems occur (as detailed in another post). Ideally, I'd hide the status bar altogether and take over the screen, but nothing I try seems to work. Any ideas? -- Rick signature.asc Description: Message signed with OpenPGP using GPGMail ___ 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
Animation on gesturing
The yahoo weather app does it for the iPad, you slowly swipe without releasing and an animation is slowly moved through... It can be forward or reverse. How exactly are they achieving that? Same goes for the iOS pull to refresh animation for the stretched little do dad. Thanks, Eric ___ 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
Re: Presenting modal vc repositions root vc
On Jan 25, 2014, at 4:37 PM, Rick Mann rm...@latencyzero.com wrote: Why is this happening? Why does Apple not test anything any more? You have provided no code and no evidence that you are complying with all view and view controller containment requirements. Please stop accusing other parties of negligence before you perform your own due diligence. --Kyle Sluder ___ 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