Re: Category errata in Objective-C

2019-03-29 Thread Cody Garvin
Just for clarification, an empty name in the parens is referred to as an extension and not a nameless category. An extension has extra abilities such as adding properties. Just being explicit for those that may not know. Please excuse mobile typos > On Mar 29, 2019, at 5:55 PM, Jens Alfke

Re: Avoiding link conflicts with a static library

2018-04-05 Thread Cody Garvin
We send them one that is lipod then give them a build phase script that strips the opposite architecture out. A bit easier than switching frameworks that could potentially have different versions and avoid separate targets to add the different architecture library to. Let me know if you’d like

Re: Avoiding link conflicts with a static library

2018-04-04 Thread Cody Garvin
With the symbols, I believe you only need to convert the public symbols. Not sure how much of an undertaking it is with that library. You can also do this with other c flags using the -D= The x86 and arm binaries will need to be stripped during archive time for your client, leaving only the

Re: Program Crash

2015-01-30 Thread Cody Garvin
Heh probably shouldn't vent here if you don't expect any comments. Definitely not the place to start off topic convo. Regardless, zero issues over here with Safari as well. Report the crash to Apple with the data dump from the console. You could have a hard to find issue cropping up. It

Re: How do I get a black status bar?

2014-08-12 Thread Cody Garvin
You could always throw an opaque UIView behind it. I did that same effect with a UIToolbar in iOS 7 for a blurred effect. hacky - Cody On Aug 12, 2014, at 4:34 PM, Rick Mann rm...@latencyzero.com wrote: Thanks for reminding me of that. I knew this was the case, but I'm fighting a designer

Re: NSCursor tracking areas

2014-07-24 Thread Cody Garvin
Tried to send this yesterday with code, but I guess it was too big. This is on Xcode 6 Beta 4 / OS X 10.10. The app is built for 10.10, so perhaps a bug. I’m getting some randomness with updating the cursor. Sometimes works as intended, sometimes not. I have four hotspots on the corners of

Re: NSCursor tracking areas

2014-07-24 Thread Cody Garvin
is it set (enter), reset (exit), or both that sometimes do not work as intended? Setting it, resetting seems to always work. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: NSCursor tracking areas

2014-07-24 Thread Cody Garvin
ah, well, i had a similar problem, but the opposite. have you tried doing the set in mouseEntered? I have not tried mouseEntered yet. If I go that route, should I dispose of cursorUpdate? - Cody ___ Cocoa-dev mailing list

Re: NSCursor tracking areas

2014-07-24 Thread Cody Garvin
On Jul 24, 2014, at 7:40 AM, Ken Thomases k...@codeweavers.com wrote: On Jul 24, 2014, at 8:37 AM, Cody Garvin c...@servalsoft.com wrote: I use updateTrackingAreas to remove all the tracking areas, then adding new ones (same rects as the drag points) with the options

Re: NSCursor tracking areas

2014-07-24 Thread Cody Garvin
On Jul 24, 2014, at 1:51 PM, Markus Spoettl ms_li...@shiftoption.com wrote: On 24/07/14 15:37, Cody Garvin wrote: I then use cusrorUpdate:(NSEvent *)theEvent to change the cursor by iterating over theEvent’s converted point to the view and matching it with a drag point (I do this because

Re: NSView in 10.10

2014-07-24 Thread Cody Garvin
They did this as a migration to Swift I believe. It has to do with migrating to properties from getters / setters. If you look at the header, the property is now just flipped, and readonly. However, you can still override the getter method on the property itself and return YES. - Cody On

Re: How to perform delayed calls using NSOperationQueue?

2014-07-21 Thread Cody Garvin
I know it’s not NSOperationQueue but GCD has dispatch_after. I ended up writing a queue manager that took NSOperations along with times, preflight block check and postflight block (setting other things up, massaging, etc). I don’t thinkw NSOperationQueue has an equivalent. Could be wrong -

Re: How to perform delayed calls using NSOperationQueue?

2014-07-21 Thread Cody Garvin
I'd love to be wrong. Hopefully I am. Please excuse mobile typos On Jul 21, 2014, at 6:03 PM, Jens Alfke j...@mooseyard.com wrote: On Jul 21, 2014, at 5:54 PM, Cody Garvin c...@servalsoft.com wrote: I ended up writing a queue manager that took NSOperations along with times, preflight

Re: rotate UI subview (CFAffline Transform)

2014-07-18 Thread Cody Garvin
Transforms are meant to be tiered / layered. In other words, if you do another transform via a pan or rotation, it’s going to reset. If your view was already scaled (matrix has been edited), doing a Make transform (ex: CGAffineTransformMakeRotation) would reset it. Transforms manipulate the

Re: Yosemite API discussions

2014-07-08 Thread Cody Garvin
Apple seriously relaxed the NDA this year. I’m fairly certain we can talk about quite a bit more than we’re used to. - Cody On Jul 8, 2014, at 3:11 AM, Markus Spoettl ms_li...@shiftoption.com wrote: Hi, since the OSX-beta devforum is virtually dead from a developer perspective, the

Re: ARC Retain Cycles

2014-04-20 Thread Cody Garvin
Hi Dave! First, check to make sure zombies are disabled. I made the mistake of trying to track down leaks via instruments, and totally forgot they were enabled: wild goose chase. Second, while using instruments use the “mark heap” tool. Get your app up and running. Mark the heap. Then start

Re: UIButton over sliding UIImageView disappears until slide complete

2014-01-19 Thread Cody Garvin
Are they in the same patent view? Please excuse mobile typos On Jan 19, 2014, at 8:19 AM, Matt Neuburg m...@tidbits.com wrote: On Wed, 15 Jan 2014 15:46:19 -0500, Eric E. Dolecki edole...@gmail.com said: I have a UIButton above a series of UIImageViews. At times, the UIImageViews will

Re: Crash on iOS when encoding an NSAttributedString

2014-01-19 Thread Cody Garvin
sounds like an attribute can't encode itself. I know CGColorRef doesn't know how to encode itself, which is what CoreText uses to render. If try and pull the string out and serial size the attributes separately, or find a way to serialize CGColorRef. Sorry I'm not much help. Please excuse

Re: UIButton over sliding UIImageView disappears until slide complete

2014-01-19 Thread Cody Garvin
Yah code would really be helpful. Are you doing implicit layer animations on the UIImageViews themselves? Or are you using Core Animation directly? On Jan 19, 2014, at 12:28 PM, Eric E Dolecki edole...@gmail.com wrote: Same parent view. Eric On Jan 19, 2014, at 2:02 PM, Cody Garvin c

Re: Mavericks CA Layer Issue

2013-12-22 Thread Cody Garvin
Did you make sure masksToBounds is set to NO? Please excuse mobile typos On Nov 22, 2013, at 2:28 AM, Banisetty Avinash baniset...@ivycomptech.com wrote: Hi All With latest Mac OS 10.9, I am facing an issue with layers. The issue is sublayers(CALayer) are not allowed to expand beyond

Re: CALayer's delegate prevents implicit animation?

2013-12-18 Thread Cody Garvin
Yah you can't make the parent view of the layer the delegate. Nasty things can happen. One of my interview questions I ask :) Please excuse mobile typos On Dec 18, 2013, at 11:50 AM, Seth Willits sli...@araelium.com wrote: Oooo… Yeah, it's an NSView which I imagine is the problem.

Re: Toggle framework in Cocoa

2013-12-10 Thread Cody Garvin
I believe google has something called google tag manager that could be useful. You can remotely enable or disable features in your app. I do believe the scenario you're describing is the right time for a remote branch that could be rolled into master when the feature is completed. Otherwise,

Re: Confusion about Image I/O export?

2013-09-02 Thread Cody Garvin
Finder lags in updating image sizes. Is it updating an image or creating a new one? Please excuse mobile typos On Sep 2, 2013, at 6:09 AM, Graham Cox graham@bigpond.com wrote: I'm confused, or am I? I'm using Image I/O to export a bitmap in PNG format. I can set the desired image

Re: UIScrollView to UIImage

2013-07-21 Thread Cody Garvin
weren't), so I think you're good there. B) Make sure your layer / view isn't nil. Are you using an outlet? Make sure your outlet is connected. - Cody Cody Garvin | Developer Servalsoft LLC On Jul 17, 2013, at 6:56 PM, Trygve Inda cocoa...@xericdesign.com wrote: I am trying to take a snapshot

Re: UIScrollView to UIImage

2013-07-19 Thread Cody Garvin
You're right Kyle. I quickly tried it, saw it worked and moved on. I'll try it again another way and report back Please excuse mobile typos On Jul 18, 2013, at 1:37 PM, Kyle Sluder k...@ksluder.com wrote: On Thu, Jul 18, 2013, at 01:18 PM, Cody Garvin wrote: The UIScrollView adds

Re: UIScrollView to UIImage

2013-07-18 Thread Cody Garvin
Hi Trygve, The UIScrollView adds these subviews to what's called a contentView. This is why you have to change a content size to adjust your scrolling, vs changing the frame of the UIScrollView. You're grabbing the wrong layer. You can grab the correct view / layer: [[scrollView contentView]

Re: UIView drawRect will update whole bounds

2013-05-15 Thread Cody Garvin
Not that this answers your question, but as graham eluded to, there aren't a lot if choices. I'd look into showing a progress indicator or look into tiling. GL Please excuse mobile typos On May 15, 2013, at 6:44 PM, Graham Cox graham@bigpond.com wrote: On 16/05/2013, at 11:29 AM, li

Re: After Photoshop closes a doc

2013-04-14 Thread Cody Garvin
You'd most likely need to create a photoshop plugin to get such a notification. Please excuse mobile typos On Apr 14, 2013, at 3:34 PM, Leonardo mac.iphone@gmail.com wrote: Hi, I would like my app executes a given task when Photoshop closes its current document. May I get a notification

Re: IB - NSTableView Single Column Header Issue

2012-12-27 Thread Cody Garvin
! - Cody On Dec 27, 2012, at 4:29 PM, Keary Suska xcode-us...@esoteritech.com wrote: On Dec 27, 2012, at 5:11 PM, Cody Garvin wrote: I've figured this one out before, but can't seem to get this to work after a few hours of trying. Problem: Can not get single header column to match single column

Re: Syncing w/o iCloud

2012-12-21 Thread Cody Garvin
Pretty sure Jens meant Simperium ;) (https://simperium.com) - Cody On Dec 20, 2012, at 10:35 PM, Jens Alfke j...@mooseyard.com wrote: On Dec 20, 2012, at 6:47 PM, Brad Stone cocoa-...@softraph.com wrote: I have an app in OS X that shares files with an app in iOS. Because of security

Re: Syncing w/o iCloud

2012-12-20 Thread Cody Garvin
Can always do bonjour. Or create your own serverside service. On Dec 20, 2012, at 6:47 PM, Brad Stone cocoa-...@softraph.com wrote: I have an app in OS X that shares files with an app in iOS. Because of security restrictions some information cannot be shared with iCloud. I'd like to do

Re: iTunes 11 miniPlayer bug

2012-11-29 Thread Cody Garvin
Probably should submit an actual bug report vs here. On Nov 29, 2012, at 12:32 PM, Eric E. Dolecki edole...@gmail.com wrote: *12779305*https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/4/wo/kSx6Mii9IeeUbZ3bSmR760/7.66 . If I open up the miniPlayer, play some music, I will see

Re: WWDC

2012-04-25 Thread Cody Garvin
I was able to get a ticket. On the west coast. I happened to just get done with my workout and saw the email. My email was dated at 6:30am pst. On Apr 25, 2012, at 10:32 AM, Nathan Sims newsli...@autonomy.caltech.edu wrote: The WWDC 2012 announcement email was dated April 25, 2012 7:04:42

Obtaining all points on a line segment

2010-11-22 Thread Cody Garvin
Hi all, I searched back through 2005 in the Cocoa Mailing List and didn't see any requests for this. We need all the points on a line / arc / path on the screen. We need to do hit detection on stroked line, so we must know if the point is valid or not. I thought using CGPathContainsPoint