سؤال

I'm trying to understand how

- (void)beginSheet:(NSWindow *)sheet modalForWindow:(NSWindow *)docWindow modalDelegate:(id)modalDelegate didEndSelector:(SEL)didEndSelector contextInfo:(void *)contextInfo

chooses the position on my window since it's modal for no window ? (i passed nil to `modalForWindow:)

The first position is the one defined in the Interface builder. Once I closed it for the first time, each time a re-open it, it center in the half top of the screen. Isn't possible to always open it a the same position ?

thx

هل كانت مفيدة؟
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top