Re: Any way to determine where a string will be truncated?

2014-01-17 Thread T.J. Usiyan
I think that you might want NSLayoutManager. This depends on how you are displaying the text, NSLayout manager can allow you to both find out and change where truncation will happen. WWDC 2013 session 220 has some info about iOS's version of this which is very similar to Cococa's. TJ On Fri, Jan

Re: Apple Sample Code WWDC 2010 session 114 (2551)

2013-11-09 Thread T.J. Usiyan
https://developer.apple.com/downloads/index.action?name=wwdc On Fri, Nov 8, 2013 at 11:23 PM, 2551 <2551p...@gmail.com> wrote: > For all those interested: > > https://www.dropbox.com/s/nqdsguiap4qs9ec/WWDC_2010_114.zip > > Best > > Phil > http://applehelpwriter.com > > On 9 Nov 2013, at 01:54, B

Re: "No options" constant

2013-10-17 Thread T.J. Usiyan
I am not sure that there is a catch-all 'no options' constant. I did find framework specific examples like kCFDateFormatterNoStyle, kCFNumberFormatterNoStyle, kCollectionDontWantTag, kCollectionDontWantId, kCollectionDontWantSize, kCollectionDontWantAttributes, kCollectionDontWantIndex, kCollecti

Re: The cost of using objects rather than plain C variables

2013-07-06 Thread T.J. Usiyan
The short answer is yes the overhead of an object versus a primitive value is huge. The longer answer is that however tiny you think the difference might be, you need to multiply it by somewhere between 200,000 and 600,000 to really get a sense for the difference in context. For the same reasons t

Re: book for n00b

2013-01-16 Thread T.J. Usiyan
I would suggest starting with this book by Aaron Hillegass : Objective-C Programming: The Big Nerd Ranch Guide. An alternative is Stephen Kochan's Programming Objective C

Re: ARC not ready for primetime?

2012-03-24 Thread T.J. Usiyan
Could you post the code for the sublayer and what is the residual memory? On Sat, Mar 24, 2012 at 4:17 AM, Scott Andrew wrote: > I seem to have hit a few limitations with ARC. > > 1.) Subclasses of CALayer are not being fully released which causes my > view controller to remain around. There is st

Re: Why so many public properties all up in my grizzle?

2012-03-22 Thread T.J. Usiyan
Well damn, @package accomplishes the 'compilation unit' request. On Thu, Mar 22, 2012 at 8:36 PM, T.J. Usiyan wrote: > >> > 2) Technically, nothing is truly private in Objective-C, so let's stop >> > trying to completely prevent people from using

Re: Why so many public properties all up in my grizzle?

2012-03-22 Thread T.J. Usiyan
> > > > 2) Technically, nothing is truly private in Objective-C, so let's stop > > trying to completely prevent people from using private APIs. > > > contradiction++ > ___ > > Not quite. You actually CAN hide the ivars and it is odd to expose them because

Re: CALayer composition changes with frame position

2012-03-22 Thread T.J. Usiyan
How is the red rectangle drawn? I don't have any great insight right now other than the fact that the change you are talking about happens at a specific place. When the top aligns with the red rectangle. You might consider color space or something like that. Maybe (and I am most certainly guessing

Re: makeObjectsPerformSelector on a sub class

2012-03-22 Thread T.J. Usiyan
Another option would be a container holding just the tiles. On Wed, Mar 21, 2012 at 5:06 PM, James Bucanek wrote: > Pascal Harris > > wrote (Wednesday, March 21, 2012 7:56 AM -): > > > Now I want to scramble the state of each of t

Re: makeObjectsPerformSelector on a sub class

2012-03-22 Thread T.J. Usiyan
Does it work if you use a for in loop? TJ On Wed, Mar 21, 2012 at 4:28 PM, Quincey Morris < quinceymor...@rivergatesoftware.com> wrote: > On Mar 21, 2012, at 13:23 , Quincey Morris wrote: > > > One thing to check: if your 'scrambleState' actually has a parameter: > > > > - (void) scrambleSt