Re: Bottom-edge constraint not enforced in IB but is in runtime?

2012-07-08 Thread Rick Mann
I'm also finding that NSSplitView's pane views seem to have the translatesAutoresizingMaskIntoConstraints property set to true by default, even when built strictly in IB. Is this correct? Xcode 4.3.2. TIA, -- Rick On May 16, 2012, at 9:18 , Kevin Cathey wrote: > Yes, this is a bug in IB. > >

Re: iOS communication with http proxy

2012-07-08 Thread Jens Alfke
On Jul 8, 2012, at 9:27 PM, Don Quixote de la Mancha wrote: > The following search turned up some Internet Engineering Task Force > Requests For Comments that, once you do know what the proxy host and > port are, explain what the protocol is. It's really not necessary to drop down to reinventing

Re: iOS communication with http proxy

2012-07-08 Thread Jens Alfke
On Jul 8, 2012, at 6:18 PM, Sasikumar JP wrote: > I am establishing the connection with streaming server directly from my > application. I don't know how do the same with proxy server is configured. What API do you use to connect to the server? Have you tried typing "proxy" into the Xcode docu

Re: iOS communication with http proxy

2012-07-08 Thread Don Quixote de la Mancha
On Sun, Jul 8, 2012 at 6:18 PM, Sasikumar JP wrote: > I am establishing the connection with streaming server directly from my > application. I don't know how do the same with proxy server is configured. > > Please some one show me the direction how to work with proxy to establish the > connectio

Re: Arrgh IB constraints

2012-07-08 Thread Rick Mann
Thanks for all your help, Charles. So, I'm getting the exact same behavior your video shows. I definitely don't want the bottom pane to get any smaller, and I can enforce that the old way, but it seems pretty lame that they didn't update it to work with autolayout. I figured out why it was addi

Re: Arrgh IB constraints

2012-07-08 Thread Rick Mann
On Jul 8, 2012, at 20:56 , Charles Srstka wrote: > On Jul 8, 2012, at 9:48 PM, Rick Mann wrote: > >>> With no height constraint, the system doesn’t know how it should look at >>> startup, and therefore that picture with the bottom pane being half the >>> window’s height is just as legit as the

Re: Arrgh IB constraints

2012-07-08 Thread Charles Srstka
On Jul 8, 2012, at 9:48 PM, Rick Mann wrote: >> With no height constraint, the system doesn’t know how it should look at >> startup, and therefore that picture with the bottom pane being half the >> window’s height is just as legit as the bottom text view being one line high. > > On the contrar

Re: Arrgh IB constraints

2012-07-08 Thread Rick Mann
On Jul 8, 2012, at 19:32 , Charles Srstka wrote: > You have to get used to the new way of thinking about things. No height > constraint is literally telling the system, “I don’t care how high you make > this view. Make it 1 px high, make it 1,000,000 px high, it’s all the same to > me.” So, I

Re: Arrgh IB constraints

2012-07-08 Thread Charles Srstka
On Jul 8, 2012, at 9:11 PM, Rick Mann wrote: > Wow, really? I think it SHOULD use the actual sizes as specified in IB. > There's a wealth of information there, and I can't think of a better way to > specify what the default window should look like. As an addendum to my previous e-mail, another

Re: Arrgh IB constraints

2012-07-08 Thread Charles Srstka
On Jul 8, 2012, at 9:11 PM, Rick Mann wrote: > Wow, really? I think it SHOULD use the actual sizes as specified in IB. > There's a wealth of information there, and I can't think of a better way to > specify what the default window should look like. Well, it tries to sync the constraints with wh

Re: Arrgh IB constraints

2012-07-08 Thread Rick Mann
On Jul 8, 2012, at 19:01 , Charles Srstka wrote: > You might have a case of ambiguity here (although the screenshot seems to > suggest you don’t, which is odd). Ambiguity is why IB keeps liking to add > stuff — you’ve got it so that the pane size is flexible, and the view sizes > are flexible,

Re: Arrgh IB constraints

2012-07-08 Thread Charles Srstka
On Jul 8, 2012, at 8:43 PM, Rick Mann wrote: > 2012-07-08 18:19:45.577 Console[49250:403] Unable to simultaneously satisfy > constraints: > ( >" H:[NSView:0x1029952d0(0)]>", >" (Names: '|':NSView:0x1029952d0 )>", >" (Names: '|':NSView:0x1029952d0 )>" > ) Actually for this, try giving

Re: Arrgh IB constraints

2012-07-08 Thread Rick Mann
On Jul 8, 2012, at 18:26 , Charles Srstka wrote: > What’s your exact problem? If it’s one of the same things I was banging my > head against earlier, I might be able to help. In this case, I'm working with a two-pane horizontal split view (resizes in the vertical direction). I already know the

Re: Arrgh IB constraints

2012-07-08 Thread Charles Srstka
On Jul 8, 2012, at 8:21 PM, Todd Heberlein wrote: > On Jul 8, 2012, at 6:12 PM, Rick Mann wrote: > >> Is there anything that describes how I'm supposed to use IB to set layout >> constraints? It keeps putting stuff in there, and then not behaving properly >> at run time. I can't delete half the

Re: Arrgh IB constraints

2012-07-08 Thread Rick Mann
On Jul 8, 2012, at 18:21 , Todd Heberlein wrote: > > On Jul 8, 2012, at 6:12 PM, Rick Mann wrote: > >> Is there anything that describes how I'm supposed to use IB to set layout >> constraints? It keeps putting stuff in there, and then not behaving properly >> at run time. I can't delete half

Re: Arrgh IB constraints

2012-07-08 Thread Todd Heberlein
On Jul 8, 2012, at 6:12 PM, Rick Mann wrote: > Is there anything that describes how I'm supposed to use IB to set layout > constraints? It keeps putting stuff in there, and then not behaving properly > at run time. I can't delete half the constraints until I add other ones, and > even then it

iOS communication with http proxy

2012-07-08 Thread Sasikumar JP
Hi, I have streaming radio application in AppStore. It works fine. Recently I got a problem reported by an user, application does not work,if the http proxy is configured. I am establishing the connection with streaming server directly from my application. I don't know how do the same with p

Arrgh IB constraints

2012-07-08 Thread Rick Mann
Is there anything that describes how I'm supposed to use IB to set layout constraints? It keeps putting stuff in there, and then not behaving properly at run time. I can't delete half the constraints until I add other ones, and even then it adds constraints that don't need to be there. I almost

Re: Document Based Application

2012-07-08 Thread koko
Quite nice, thanks GG. -koko On Jul 8, 2012, at 3:01 PM, Greg Guerin wrote: > koko wrote: > >> I have 29 file types and wanted to get away from the if or switch to open >> them and let NSDocument pick the right class for me. >> >> As I understand it, an Item in the Document types array of th

Re: Document Based Application

2012-07-08 Thread Greg Guerin
koko wrote: I have 29 file types and wanted to get away from the if or switch to open them and let NSDocument pick the right class for me. As I understand it, an Item in the Document types array of the plist contains and entry for an NSDocument class. And yes, each type has a unique exten

Re: vm keeps increasing when in a rigorous loop

2012-07-08 Thread Jens Alfke
On Jul 8, 2012, at 11:06 AM, Nick Rogers wrote: > I have seen that even when this condition is not met and no memory is > allocated, the VM keeps growing steadily as seen in Activity Monitor. > So the only thing contributing to it would be the various ints etc. Use the 'heap' tool, or Instrumen

Re: identifying if an application is not responding

2012-07-08 Thread Jens Alfke
On Jul 8, 2012, at 11:07 AM, Devarshi Kulshreshtha wrote: > Is there any way to identify if an application is 'not responding' like > how it shows in 'Force Quit' window when an application is unresponsive. I don't think there is a Cocoa API for it. The next lower-level API is (I think) Process

Re: vm keeps increasing when in a rigorous loop

2012-07-08 Thread Fritz Anderson
On 8 Jul 2012, at 1:06 PM, Nick Rogers wrote: > But the app is GC enabled (required), so the VM size should reset to some > level every few seconds, but doesn't. Revise your mental model of garbage collection. It runs periodically on a thread and doesn't collect all garbage at every sweep, so y

identifying if an application is not responding

2012-07-08 Thread Devarshi Kulshreshtha
Hi All, Is there any way to identify if an application is 'not responding' like how it shows in 'Force Quit' window when an application is unresponsive. I checked methods declared in NSApplicationDelegate, checked class reference of NSRunningApplication but I did n't get any useful method or prop

vm keeps increasing when in a rigorous loop

2012-07-08 Thread Nick Rogers
Hi, The code is like: - (void)myMethod { . while (flag) { UInt32 temp; . and lot of other ints etc. if (someCondition == 1) { UInt8 *buff = (UInt8*)calloc(1, sizeof(aStruct));

Re: Document Based Application

2012-07-08 Thread koko
I have 29 file types and wanted to get away from the if or switch to open them and let NSDocument pick the right class for me. As I understand it, an Item in the Document types array of the plist contains and entry for an NSDocument class. And yes, each type has a unique extension (possibly mul

Re: Debugging bindings with -NSBindingDebugLogLevel 1

2012-07-08 Thread Keary Suska
On Jul 7, 2012, at 10:41 PM, Rick Mann wrote: > I tried adding '-NSBindingDebugLogLevel 1' (no quotes) to "Arguments Passed > on Launch" to my scheme, and I also wrote it to the app's defaults. But I > don't see any logging when I've got an error (in this case, a deliberately > mis-spelled key

turning app into background app

2012-07-08 Thread Rick C.
Hi, I have an older project where I write to my own .plist to set LSUIElement to change my app from being hidden or non-hidden. I know this is not recommended and I'm looking for a "newer" way to do this? I only have a single app here not a helper app so that's why I'm trying to figure this o

Re: slow first context menu

2012-07-08 Thread James Maxwell
Ah, thanks for the tip. I'll take a loot at that tomorrow. J. On 2012-07-07, at 6:00 PM, Jens Alfke wrote: > > On Jul 7, 2012, at 5:40 PM, James Maxwell wrote: > >> I'm finding that the first time I ask for a context menu (i.e., >> control-click or two-finger tap) it takes several seconds to

Re: Problem adding subview to NSScroller subclass

2012-07-08 Thread Lee Ann Rucker
Yes, I had an info view below my NSCollectionView, and as that avoids horizontal scrollbar and only shows the vertical one when needed, it looked really weird for the scrollbar not to reach the bottom of the window. Shouldn't take too much tweaking to support a view that can be added and removed

Re: Problem adding subview to NSScroller subclass

2012-07-08 Thread Gideon King
Excellent, thanks Lee Ann. >From the look of the code, the accessory view will be shown all the time. I >guess I have a UI decision to make as to whether to have just my zoom controls >showing all the time and overlay scrollers (which may look a bit funny, but >gives you maximum room), or usin