Give us the full details. What specific error are you seeing? On 15 Feb 2012, at 20:14, koko wrote:
> I need to know why a line of code that is OK outside a Block is invalid > inside. > > > > ================= > [sp beginSheetModalForWindow:[self window] completionHandler:^(NSInteger > result) > { > if (result == NSFileHandlingPanelOKButton) > { > Str px("a"); > prefs.Set((char*)"Designer1", (char*)"savepath", px ); <-- GIVES > ERROR, NO MATCHING SET FUNCTION > } > }]; > > Str px("a"); > prefs.Set((char*)"Designer1", (char*)"savepath", px ); <-- SAME CODE > OUTSIDE BLOCK IS OK > ================= > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40mikeabdullah.net > > This email sent to cocoa...@mikeabdullah.net _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com