Skip to content

Commit

Permalink
Don't bother trying to avoid long lines when using Apple's C APIs
Browse files Browse the repository at this point in the history
It's impossible.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
  • Loading branch information
wincent committed May 16, 2011
1 parent 15e9f57 commit 06da1bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.c
Expand Up @@ -42,8 +42,7 @@ int main (int argc, const char * argv[]) {
CFSTR("Cancel"),
};
CFDictionaryRef dictionary = CFDictionaryCreate(NULL, keys, values, sizeof(keys)/sizeof(*keys), &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
CFUserNotificationRef notification = CFUserNotificationCreate
(NULL, 0, flags, &error, dictionary);
CFUserNotificationRef notification = CFUserNotificationCreate(NULL, 0, flags, &error, dictionary);
CFOptionFlags responseFlags;
SInt32 response = CFUserNotificationReceiveResponse(notification, 0, &responseFlags);
if (response == 0 && (responseFlags & 0x3) != kCFUserNotificationAlternateResponse)
Expand Down

0 comments on commit 06da1bc

Please sign in to comment.