cocoa - How can you tell what namespace constants have been put in in swift? -


in swift, lot of cocoa , framework constants have been put namespaces. example, nscompositesourceover nscompositingoperation.compositesourceover.

this thing. however, it's hard work out apple have put constants. example, need kcgdesktopwindowlevel, , can't find damn thing. (there kcgdesktopwindowlevelkey, that's not same thing.)

is there reference this, or set of files can grep?

in original cgwindowlevel.h, kcgdesktopwindowlevel macro defined cgwindowlevelforkey(kcgdesktopwindowlevelkey). macro not imported, latter works fine in swift long add type conversions: int(cgwindowlevelforkey(cgwindowlevelkey(kcgdesktopwindowlevelkey))). (you might wish file bug since these type conversions required.) can see of these things ⌘-clicking on cgwindowlevelforkey function, or using :print_module coregraphics swift -integrated-repl.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -