Re: IB keeps changing my constraints when I resize the cell

2013-06-15 Thread Quincey Morris
On Jun 15, 2013, at 19:31 , Rick Mann wrote: > There's a setting for "Automatic"…where does it get it from then? AFAIK, it means the row height is set automatically based on the control size (small/medium/large). > Also, is there no way, using bindings, and no delegate, to choose among > mult

Re: IB keeps changing my constraints when I resize the cell

2013-06-15 Thread Rick Mann
On Jun 15, 2013, at 19:26 , Quincey Morris wrote: > On Jun 15, 2013, at 18:48 , Rick Mann wrote: > >> I can leave the view 23 pixels high, and adjust the outline view's row >> height, but I'd rather it size automatically in case I add views of a >> different heigh later. > > It doesn't wor

Re: IB keeps changing my constraints when I resize the cell

2013-06-15 Thread Quincey Morris
On Jun 15, 2013, at 18:48 , Rick Mann wrote: > I can leave the view 23 pixels high, and adjust the outline view's row > height, but I'd rather it size automatically in case I add views of a > different heigh later. It doesn't work like that. A table cell view [prototype] has no predetermined

IB keeps changing my constraints when I resize the cell

2013-06-15 Thread Rick Mann
I'm making a view-based NSOutlineView. In my NSTableViewCell, I have an image and static text. I have constraints to vertically center the image and static text, and they each have pinned height. This is fine, but if I change the NSTableViewCell's height using the size inspector, at some point,

Re: Multiple Observations

2013-06-15 Thread Seth Willits
On Jun 15, 2013, at 1:32 PM, Gordon Apple wrote: > I still think the compiler should be smart enough to block this > without having to put a on-shot blocking flag in awakeFromNib, which I have > now done. My question would be, why are you using awakeFromNib specifically in the first place? I rea

Re: Account framework

2013-06-15 Thread Kévin Vavelin
It’s exactly why I try to get a native OAuth2 connexion, ‘cause I don’t like web-app and use WebKit instead is not what I want but If it’s necessary :/ Unfortunately many website implement OAuth protocol for “secure” login and authorisation to their API... I’ll try to find another solution inst

Re: Account framework

2013-06-15 Thread Jens Alfke
On Jun 15, 2013, at 3:39 PM, Kévin Vavelin wrote: > I’ll take a look on your github link and see if it can help me. I try to > figure out why is there so much code to write for just getting a response > from the server with the authorisation token and then resend it. OAuth is an awful, overc

Re: Account framework

2013-06-15 Thread Kévin Vavelin
It’s not a problem for me if we have no back port for 10.8, it could be great but I think they have more urgent things to to right now and they’ll not allow a new feature on Account framework on 10.8 like they do for new API coming with 10.9 and iOS 7.0 I’ll take a look on your github link and

Re: Account framework

2013-06-15 Thread Mike Abdullah
On 15 Jun 2013, at 20:52, Kévin Vavelin wrote: > Ouch.. Looks like we have many bug report to fill ... I hope it will be > resolve soon ‘cause this framework have a good potential for using API from > other services . 1) Yes, please do file a radar. It helps Apple know what sort of things thi

Accelerate Framework?

2013-06-15 Thread Rick Mann
Where to go for questions about the Accelerate Framework? -- Rick ___ 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.

Re: Multiple Observations

2013-06-15 Thread Gordon Apple
Well, let¹s just call it unexpected behavior then. Now that I understand what is going on, I see your point and will be forewarned in future implementations. You are technically correct. However, it was a subtle issue which could easily trip up someone encountering it for the first time. I don¹t

Re: Account framework

2013-06-15 Thread Kévin Vavelin
Ouch.. Looks like we have many bug report to fill ... I hope it will be resolve soon ‘cause this framework have a good potential for using API from other services . Vavelin Kévin Twitter | Blog | LinkedIn Entrepreneur Developer OS X / iOS On 15 Jun 2013, at 21:50, Robert Vojta wrote: > Yep,

Re: Account framework

2013-06-15 Thread Robert Vojta
Yep, Jens's right. We do use this framework heavily for Facebook and it's good, but not perfect and there're many issues you have to fight with and we did end up with WebKit support as well (classic Facebook web auth dialog). Sometimes you have to completely reset privacy database via tcccutil,

Re: Account framework

2013-06-15 Thread Kévin Vavelin
Right, I saw many OAuth project on GitHub but if we can do it with Account Framework it could be great. Maybe I’ll just file a radar for that ;) Thank you for your quick answer Vavelin Kévin Twitter | Blog | LinkedIn Entrepreneur Developer OS X / iOS On 15 Jun 2013, at 21:36, Jens Alfke wrote

Re: If Statements In Objective C For IOS Development

2013-06-15 Thread Jens Alfke
On Jun 15, 2013, at 7:53 AM, Harmony Neil wrote: > I've tried running the app, and xcode is complaining about the t1, t2 and t3 > things in the if statement … Something about identifiers. Any time you ask a question about an error or exception, you should include the actual text. (You can get

Re: Account framework

2013-06-15 Thread Jens Alfke
On Jun 15, 2013, at 12:21 PM, Kévin Vavelin wrote: > I want to connect to some API using OAuth2 authentification in my application > and I see that Account Framework got a method for this. So I want to use the > Account framework for connecting to these API and store the account into the > da

Account framework

2013-06-15 Thread Kévin Vavelin
Hi there, I want to connect to some API using OAuth2 authentification in my application and I see that Account Framework got a method for this. So I want to use the Account framework for connecting to these API and store the account into the database but I don’t know how I can do it and see no

popup menus and toolbar buttons

2013-06-15 Thread Eric Smith
Anyone know how to attach a popup menu to a toolbar button, as with the 'run' button in Xcode? I want to give users a choice of action via a popup menu if they hold down one of my toobar buttons. Thanks in advance, Eric ___ Cocoa-dev mailing list (Co

Re: Multiple Observations

2013-06-15 Thread Kyle Sluder
On Jun 15, 2013, at 11:20 AM, Gordon Apple wrote: > Well, I have to say that this statement is highly ambiguous. It is not ambiguous. It is clear as night and day. -awakeFromNib is sent to File's Owner during nib loading. End of story. > It does not explicitly say that awakeFromNib is sent to

Re: Multiple Observations

2013-06-15 Thread Gordon Apple
Well, I have to say that this statement is highly ambiguous. It does not explicitly say that awakeFromNib is sent to the file’s owner separately for every interface object. My reading of this would interpret it to say it is sent once to the file’s owner, in addition to being sent to to each inter

Re: Multiple Observations

2013-06-15 Thread Kyle Sluder
On Sat, Jun 15, 2013, at 09:51 AM, Gordon Apple wrote: > I don¹t seen anything about this in the referenced docs. From "The Object Loading Process", from the Nib Files chapter of the Resource Programming Guide

Re: Multiple Observations

2013-06-15 Thread Seth Willits
Adding onto what's been said already, even without the view-based tableview case, the fact that awakeFromNib can be called multiple times is why I generally never use it. Yeeears ago I was bitten by a view controller subclass have its awakeFromNib being called twice because it was instantiated i

Re: Multiple Observations

2013-06-15 Thread Gordon Apple
I don¹t seen anything about this in the referenced docs. I see that awakeFromNib is now an informal protocol, but I see nothing about it being called as a delegate method for the table (outline) view. It has always been an instance method of the object On 6/15/13 11:10 AM, "Kyle Sluder" wrote:

Re: Multiple Observations

2013-06-15 Thread Kyle Sluder
On Jun 15, 2013, at 9:15 AM, Ken Thomases wrote: > > The view controller is presumably the NIB's File's Owner. Therefore, per > what Kyle said, it has -awakeFromNib called on it every time the NIB is > loaded. The NIB is being loaded to instantiate each cell view, so > -awakeFromNib is call

Re: Multiple Observations

2013-06-15 Thread Ken Thomases
On Jun 15, 2013, at 10:54 AM, Gordon Apple wrote: > On 6/15/13 10:19 AM, "Kyle Sluder" wrote: > >> On Jun 15, 2013, at 8:08 AM, Gordon Apple wrote: >> OMG! I thought for sure I had checked awakeFromNib. That is the problem. My view-based outline view has issues. makeViewWithIdenti

Re: Combining pan, zoom, and rotate gestures into one?

2013-06-15 Thread David Duncan
On Jun 14, 2013, at 5:41 PM, Rick Mann wrote: > The Apple Maps application allows you to pan, zoom, and rotate in a single > two-finger gesture. > > Is that done with three gesture recognizers all operating simultaneously? Or > are they just handling the touches directly? > > I don't see how

Re: Multiple Observations

2013-06-15 Thread Kyle Sluder
On Jun 15, 2013, at 8:54 AM, Gordon Apple wrote: > Kyle, > > One of us is missing the point. Yes, awakeFromNib gets called for these > objects. The question is why does the viewController’s awakeFromNib get > called every time a cell view is instantiated or copied? That cell view’s > awake

Re: Multiple Observations

2013-06-15 Thread Gordon Apple
BTW, I’ve just reproduced the problem in TableViewPlayground. On 6/15/13 10:19 AM, "Kyle Sluder" wrote: > On Jun 15, 2013, at 8:08 AM, Gordon Apple wrote: > >> > I shouldn¹t need to look at the context. > > You must ALWAYS check the context. > >> > >> > OMG! I thought for sure I had check

Re: Multiple Observations

2013-06-15 Thread Gordon Apple
Kyle, One of us is missing the point. Yes, awakeFromNib gets called for these objects. The question is why does the viewController’s awakeFromNib get called every time a cell view is instantiated or copied? That cell view’s awakeFromNib should get called, not the main viewController’s awakeFrom

Re: If Statements In Objective C For IOS Development

2013-06-15 Thread Kevin Muldoon
I may not be reading this right, but it looks like you're doing math calc on the objects, rather than the values within the objects. See if this works for you… - (IBAction)nextButtonAction:(id)sender { int textFieldOneTextAsInteger = [self.textFieldOne.text integerValue]; int textFi

Re: Multiple Observations

2013-06-15 Thread Kyle Sluder
On Jun 15, 2013, at 8:08 AM, Gordon Apple wrote: > I shouldn¹t need to look at the context. You must ALWAYS check the context. > > OMG! I thought for sure I had checked awakeFromNib. That is the problem. > My view-based outline view has issues. makeViewWithIdentifier:owner: is > causing th

Re: Multiple Observations

2013-06-15 Thread Gordon Apple
I shouldn¹t need to look at the context. However, I did try it using a specified context (and check for it) and got the same result. The setter is only getting called once. OMG! I thought for sure I had checked awakeFromNib. That is the problem. My view-based outline view has issues. makeView

If Statements In Objective C For IOS Development

2013-06-15 Thread Harmony Neil
Hellow, I've been rewriting my IOS app (mainly because I had to) and got my 3 text fields: t1, t2, and t3 being what I'm calling them. I've also got a label on there. What I want to do is have it so that if t2 multiplied by t3 is greater than t1 the text on the label says one thing, if t2 mult