Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

cocoa - NSWindow Content Border messing with CALayer's geometry -


i have nswindow 32px bottom content border. inside window's view, have 2 custom subviews. each of them layer backed, , i'm tracking mouse nstrackingarea. part of i'm doing mouseover effects coreanimation. not problem in general, noticed kind of strange , wondered if knows why happening.

when setting trackingarea , mouseover method, hittest root layer , log layer's name can see if geometry of various sublayers hold water when resize window. internally, seem (and look) fine. visually, in right place, when move mouse, notice though mouse physically on layer, hittest returning whatever layer 32 px above it. however, if remove content border, works expect , correct layer returned.

i need content border, have simple workaround involves offsetting hittest point 32px. works fine, seems weird presence of content border seems skewing co-ordinate system of these subviews. know why happening?

nsevent returns mouse locations relative window's coordinate system, not targeted view's. need call convertrect:fromview: correct coordinates.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -