Re: A Stack of Editors

2014-10-06 Thread Charles Jenkins
Keary, You made me question what I thought I knew, so I went back and changed my method returning the number of rows (views) to log its operation so I could make sure it was returning 16 as it should. And of course I found it was returning 0. What I previously didn’t know is that the table l

Obtaining class of key at runtime

2014-10-06 Thread Devarshi Kulshreshtha
I have a class with below interface: @interface MyData : NSObject @property (readwrite, strong) NSString *urlToParse; @property (readwrite, strong) MappingElement *titleElement; - (instancetype)initWithPlist:(NSString *)plistPath; Its implementation is like this: - (instancetype)initWithPlist:

Re: Obtaining class of key at runtime

2014-10-06 Thread Jens Alfke
> On Oct 6, 2014, at 7:43 AM, Devarshi Kulshreshtha > wrote: > > Scenario 1: Do not initialize instance variables in initWithPlist method > > In this case if I try to log class of key in setValue:forKey method, > it prints nil That doesn't make any sense — it's illegal to pass a nil key to s

Re: Obtaining class of key at runtime

2014-10-06 Thread Devarshi Kulshreshtha
Scenario 1: Do not initialize instance variables in initWithPlist method > > In this case if I try to log class of key in setValue:forKey method, > it prints nil > > > That doesn't make any sense — it's illegal to pass a nil key to > setValue:ForKey:. Who is calling this method? This method is au

Re: Obtaining class of key at runtime

2014-10-06 Thread David Duncan
> On Oct 6, 2014, at 10:12 AM, Devarshi Kulshreshtha > wrote: > > Scenario 1: Do not initialize instance variables in initWithPlist method > >> >> In this case if I try to log class of key in setValue:forKey method, >> it prints nil >> >> >> That doesn't make any sense — it's illegal to pas

Photo Extension and Orientation Change

2014-10-06 Thread Daniel Blakemore
I'm working on a app with a photo extension written in Swift. I'm trying to handle rotations intelligently in both the app and the extension. In the app, like an obedient developer, I implemented viewWillTransitionToSize:withTransitionCoordinator: to handle rotations. Everything works beautifull