Re: WatchKit Noob Question

2016-11-08 Thread Richard Charles

> On Nov 8, 2016, at 11:21 AM, Quincey Morris 
>  wrote:
> 
> Yes, I agree, both that many useful pieces information are gone or not linked 
> to, and that the web pages take up far too much vertical space.

The current documentation is perfectly formatted for an iPad. I find this 
documentation unsuable on my development machine which is a little 
disconcerting.

--Richard 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

Printing NSCollectionView

2016-11-08 Thread Steve Mills
I'm trying to create a temporary NSCollectionView for printing (this code is 
replacing old IKImageBrowserView printing code). I'm connecting it to the same 
dataSource as my normal document's collection view, and binding the 
NSContentBinding to the same array controller's arrangedObjects as the one in 
the document. My data source (the document) is returning the correct 
numberOfItemsInSection, but the itemForRepresentedObjectAtIndexPath method is 
never being called. I've tried calling invalidateLayout on the layout and 
reloadData on the collection view after getting everything all hooked up, but 
it just ain't working. Any advice? It doesn't need to be in a scroll view does 
it?

--
Steve Mills
Drummer, Mac geek


___

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

Re: WatchKit Noob Question

2016-11-08 Thread Quincey Morris
On Nov 8, 2016, at 04:08 , Charles Jenkins  wrote:
> 
> Now that Apple’s docs have been reformatted attractively with plenty of 
> whitespace, it seems crucial requirements info is often missing.

Yes, I agree, both that many useful pieces information are gone or not linked 
to, and that the web pages take up far too much vertical space.

It’s odd, because the documentation team is very responsive and (in the posts 
they’ve made here over the years) seem very committed to providing the best 
documentation possible, but the documentation doesn’t seem to be converging on 
any kind of “best”. It’s just different every year.

> *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
>  
> 
Perhaps there’s a little bit of cultural shift going on, too. When there were 
no modules, the Obj-C #import statement was not necessarily predictable, but 
now you just import (Swift) or @import (Obj-C) the module name, aka the 
framework name. The first of those links tells you that the framework name is 
UserNotifications, and the framework name is visible in the black bar at the 
top of the page in the second link ("UserNotifications > 
UNUsernotificationCenter”).

I’m still not used to this. I still have to think about it when I get an 
undefined symbol error. 

___

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

Re: Creating an NSWindow with utility style in Xcode storyboard?

2016-11-08 Thread Peter Teeson

> On Nov 7, 2016, at 10:58 PM, Quincey Morris 
>  wrote:
> 
> On Nov 7, 2016, at 19:55 , Rick Mann  wrote:
>> 
>> Xcode never gives you controls for setting a class name
> 
> Much like the Spanish Inquisition.
> 
> (Monty Python joke, for those going “Huh?”)

Nobody expects the Spanish Inquisition….


___

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

Re: WatchKit Noob Question

2016-11-08 Thread Charles Jenkins
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  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