---
title: "CFUserNotificationPopUpSelection(_:)"
framework: Core Foundation
role: symbol
role_heading: Function
platforms: [macOS 10.0+]
path: "corefoundation/cfusernotificationpopupselection(_:)"
---

# CFUserNotificationPopUpSelection(_:)

Returns a flag used to set the selected element of a pop-up menu.

## Declaration

```swift
func CFUserNotificationPopUpSelection(_ n: CFIndex) -> CFOptionFlags
```

## Parameters

- `n`: The index of the pop-up menu element to select. The index corresponds to the order in which the pop-up menu elements are listed in the doc://com.apple.corefoundation/documentation/CoreFoundation/kCFUserNotificationPopUpTitlesKey array of the user notification’s description dictionary. idx must be in the range 0 to 255.

## Return Value

Return Value A flag that can be used to set the selected element of a pop-up menu when creating a user notification with CFUserNotificationCreate(_:_:_:_:_:).

## See Also

### CFUserNotification Miscellaneous Functions

- [CFUserNotificationCancel(_:)](corefoundation/cfusernotificationcancel(_:).md)
- [CFUserNotificationCheckBoxChecked(_:)](corefoundation/cfusernotificationcheckboxchecked(_:).md)
- [CFUserNotificationCreate(_:_:_:_:_:)](corefoundation/cfusernotificationcreate(_:_:_:_:_:).md)
- [CFUserNotificationCreateRunLoopSource(_:_:_:_:)](corefoundation/cfusernotificationcreaterunloopsource(_:_:_:_:).md)
- [CFUserNotificationDisplayAlert(_:_:_:_:_:_:_:_:_:_:_:)](corefoundation/cfusernotificationdisplayalert(_:_:_:_:_:_:_:_:_:_:_:).md)
- [CFUserNotificationDisplayNotice(_:_:_:_:_:_:_:_:)](corefoundation/cfusernotificationdisplaynotice(_:_:_:_:_:_:_:_:).md)
- [CFUserNotificationGetResponseDictionary(_:)](corefoundation/cfusernotificationgetresponsedictionary(_:).md)
- [CFUserNotificationGetResponseValue(_:_:_:)](corefoundation/cfusernotificationgetresponsevalue(_:_:_:).md)
- [CFUserNotificationGetTypeID()](corefoundation/cfusernotificationgettypeid().md)
- [CFUserNotificationReceiveResponse(_:_:_:)](corefoundation/cfusernotificationreceiveresponse(_:_:_:).md)
- [CFUserNotificationSecureTextField(_:)](corefoundation/cfusernotificationsecuretextfield(_:).md)
- [CFUserNotificationUpdate(_:_:_:_:)](corefoundation/cfusernotificationupdate(_:_:_:_:).md)
