Well, no. The Apple docs I have found* and sample code from people asking
questions in places like StackOverflow all completely fail to mention you
need to import UserNotifications. Now that Apple’s docs have been
reformatted attractively with plenty of whitespace, it seems crucial
requirements info is often missing.

When I get home tonight, I’ll add that import statement, and from there
everything will probably work, so thanks, Quincey and Hunter! :-)

*I’m sure someone will be able to reply to this with a link and say “See?
It was right here!” But the word “import” doesn’t appear anywhere on
important pages where it should be such as
https://developer.apple.com/reference/usernotifications or
https://developer.apple.com/reference/usernotifications/unusernotificationcenter


On Mon, Nov 7, 2016 at 10:47 PM, Quincey Morris <
quinceymor...@rivergatesoftware.com> wrote:

> On Nov 7, 2016, at 17:00 , Charles Jenkins <cejw...@gmail.com> wrote:
>
>
> What am I doing wrong?
>
>
> What is the error message?
>
> And you did import UserNotifications, right?
>
>


-- 

Charles
_______________________________________________

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

Reply via email to