Re: how to disable "ARM function not 4-byte aligned" warning?

2014-05-03 Thread vipgs99
finally, I set -w in "Other Linker Flags" to disable all warnings in link phase. On 14-4-25 13:17, vipgs99 wrote: It comes from a third .a file, how can I disable this warning, or how can i depress all warnings from a single .a file? thanks ___ Coco

Re: Flush two NSViews with one fixed width using Cocoa Auto Layout

2014-05-03 Thread Roland King
Because your drawing code is broken. NSRectFill( self.frame ) fills starting at the *frame* offset which is 100, so you don't draw the left 100 px. You always want to draw relative to 0,0 in a drawRect: call. Or you could just have set the background colour. changing it to NSRectFill( dirtyRe

Flush two NSViews with one fixed width using Cocoa Auto Layout

2014-05-03 Thread Tae Won Ha
Hi, guys. I have a problem using Auto Layout in Cocoa. What I want achieve is simple: I have two custom views, say, Left and Right. I want Left to be always 100 wide and Right to be flexible, ie resize with the Window: +--+---+ | |