Merge branch 'BugFix-BlockCopy' into Feature-CurTime
This commit is contained in:
commit
93c55ad866
|
@ -17,14 +17,14 @@
|
||||||
modalForWindow: docWindow
|
modalForWindow: docWindow
|
||||||
modalDelegate: self
|
modalDelegate: self
|
||||||
didEndSelector: @selector(my_blockSheetDidEnd:returnCode:contextInfo:)
|
didEndSelector: @selector(my_blockSheetDidEnd:returnCode:contextInfo:)
|
||||||
contextInfo: [block copy]];
|
contextInfo: Block_copy(block)];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)my_blockSheetDidEnd: (NSWindow *)sheet returnCode: (NSInteger)returnCode contextInfo: (void *)contextInfo
|
- (void)my_blockSheetDidEnd: (NSWindow *)sheet returnCode: (NSInteger)returnCode contextInfo: (void *)contextInfo
|
||||||
{
|
{
|
||||||
MASheetBlock block = (MASheetBlock)contextInfo;
|
MASheetBlock block = (MASheetBlock)contextInfo;
|
||||||
block(returnCode);
|
block(returnCode);
|
||||||
[block release];
|
Block_release(block);
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user