Re: NSCollectionView, disappearing items on reloadData

2023-01-11 Thread Arved von Brasch via Cocoa-dev
Hi List, A follow up. I’m reasonably sure this was a binding issue. I had connected the ‘dataSource’ outlet and implemented the data source methods and also bound the NSCollectionView to the ‘arrangedObjects’ binding of the same NSArrayController. The binding always failed, but using the data

Re: NSCollectionView, disappearing items on reloadData

2023-01-08 Thread Arved von Brasch via Cocoa-dev
collectionView:itemForRepresentedObjectAt:. Yes, there’s a lot of scope for further improvement. For the time being, the easiest solution is to reload / refresh all views when the user switches tabs. Cheers, Arved > On 09 Jan 2023, at 08:31, Rob Petrovec wrote: > > NSCollectionView, like NS

Re: NSCollectionView, disappearing items on reloadData

2023-01-08 Thread Rob Petrovec via Cocoa-dev
NSCollectionView, like NSTableView/NSOutlineView, will reuse existing views instead of recreating them when it can to speed up the UI. This is most commonly used during scrolling where views that scroll out of view will be reused with new data and scrolled into view. It will call

NSCollectionView, disappearing items on reloadData

2023-01-08 Thread Arved von Brasch via Cocoa-dev
kept in memory, they are reloaded upon switching back to the foreground - ie. this is not tabs, but separate loads of Xib file Views). If I put a break point in an override of ‘viewWillDisappear()` in my NSCollectionViewItem subclass, I can see the backtrace indicates that NSCollectionView has

NSCollectionView + custom layout => missing vertical drop line

2020-07-14 Thread Stephane Sudre via Cocoa-dev
I'm currently playing with NSCollectionView (10.11+ behavior) and have not been able to figure out a mystery when it comes to drag and drop. I have a NSCollectionView with a custom layout. The layout is based on the standard grid layout with the following modifications in mind: - there can

Animate layout changes in NSCollectionView?

2019-04-11 Thread Demitri Muna
Hi, I have a 10.11+ NSCollectionView and a custom layout, and I’d like to animate the items in the collection when the bounds change. This does not involve inserting or deleting items or changing the layout, just repositioning them when the view changes size. It’s exactly this question: https

Re: Dynamically change NSCollectionView items based on view width

2019-04-08 Thread Demitri Muna
Pro-tip: when updating a legacy NSCollectionView to a modern implementation and you leave the old one in another view “just in case", update your “collectionView” outlet to point to the new one. Sigh. “Never mind.” — Roseanne Roseanna

Re: Dynamically change NSCollectionView items based on view width

2019-04-07 Thread Demitri Muna
Hi Mike, On Apr 7, 2019, at 4:20 PM, Mike Abdullah wrote: > The obvious first question to me is: is your notification actually firing? Yes, it fires upon every frame change so I know exactly when the view’s width becomes is less than my threshold. I am observing changes in self.view.superview

Re: Dynamically change NSCollectionView items based on view width

2019-04-07 Thread Mike Abdullah
The obvious first question to me is: is your notification actually firing? Mike. > On 6 Apr 2019, at 22:46, Demitri Muna wrote: > > Hello, > > I have a 10.11+ NSCollectionView. I have two representations (subclasses of > NSCollectionViewItem) of the data - one large and o

Re: Dynamically change NSCollectionView items based on view width

2019-04-06 Thread Richard Charles
View Controllers. --Richard Charles > On Apr 6, 2019, at 3:46 PM, Demitri Muna wrote: > > Hello, > > I have a 10.11+ NSCollectionView. I have two representations (subclasses of > NSCollectionViewItem) of the data - one large and one small. When the view is > resized to

Dynamically change NSCollectionView items based on view width

2019-04-06 Thread Demitri Muna
Hello, I have a 10.11+ NSCollectionView. I have two representations (subclasses of NSCollectionViewItem) of the data - one large and one small. When the view is resized to be narrower than the large representation, I’d like to swap the views to the smaller versions. Similarly, when the window

Substitute for NSCollectionView?

2017-05-02 Thread Steve Mills
Has anybody written something better than NSCollectionView to display a scrolling matrix of cells that has good performance with thousands of items and works with an array controller? NSCollectionView is a complete mess. Everything I do is met with crummy behavior. -- Steve Mills Drummer, Mac

Re: NSCollectionView selection behavior is insanely bad

2017-04-26 Thread Steve Mills
On Apr 26, 2017, at 18:13, Greg Weston wrote: >> Instead of doing the right thing when shift-clicking (selecting a range from >> the anchor), it simply adds/removes the clicked item to/from the selection. >> That's unlike pretty much any Apple matrix-of-items selection behavior ever. > > You m

Re: NSCollectionView selection behavior is insanely bad

2017-04-26 Thread Greg Weston
> Instead of doing the right thing when shift-clicking (selecting a range from > the anchor), it simply adds/removes the clicked item to/from the selection. > That's unlike pretty much any Apple matrix-of-items selection behavior ever. You mean it selects like Finder icon views have since 1984?

NSCollectionView selection behavior is insanely bad

2017-04-26 Thread Steve Mills
Since IKImageBrowserView is deprecated and buggy in recent versions of macOS, I've been switching to NSCollectionView. Holy crap, does its selection behavior suck. Instead of doing the right thing when shift-clicking (selecting a range from the anchor), it simply adds/removes the clicked

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 ar

Re: Is NSCollectionView size not controllable in 10.10?

2016-11-06 Thread Steve Mills
On Nov 6, 2016, at 20:39:50, じょいすじょん wrote: > > If this is on 10.10 as was noted earlier, NSCollectionViewFlowLayout is not > available is it? No, it's not. That's the problem. The "legacy" version of NSCollectionView is barely customizable. I'll probably mo

Re: Is NSCollectionView size not controllable in 10.10?

2016-11-06 Thread じょいすじょん
ributesForElementsInRect: & -layoutAttributesForItemAtIndexPath: > Good luck... > > —Rob > > >> On Nov 4, 2016, at 10:01 PM, Steve Mills > <mailto:sjmi...@mac.com>> wrote: >> >> On Nov 4, 2016, at 02:56:27, Jean-Daniel wrote: >>> >>> I don’t get it.

Re: Is NSCollectionView size not controllable in 10.10?

2016-11-06 Thread Rob Petrovec
gt;> >> I don’t get it. NSCollectionView is a very flexible class. If you are not >> happy with the default flow layout, just write your own. >> >> From the reference: >> "• The layout object specifies the position and appearance of items >> onscree

Re: NSCollectionView isn't playing nicely with selection binding

2016-11-06 Thread Rob Petrovec
The NSIndexSet variants are (soft) deprecated. They will likely be hard deprecated (e.g. produce compiler warnings/errors) in a future release. You should only use the NSIndexPath versions going forward. Using a mix of the two variants of API is not supported. To bind NSCollectionView

Re: Is NSCollectionView size not controllable in 10.10?

2016-11-04 Thread Steve Mills
On Nov 4, 2016, at 02:56:27, Jean-Daniel wrote: > > I don’t get it. NSCollectionView is a very flexible class. If you are not > happy with the default flow layout, just write your own. > > From the reference: > " • The layout object specifies the position

Is NSCollectionView size not controllable in 10.10?

2016-11-02 Thread Steve Mills
No matter what I've tried when building and running under 10.10, I can't get an NSCollectionView that's in an NSScrollView to be wider than the scroll view. I want it to be laid out with a specific number of columns, and all those columns a specific width (all the same). But it

NSCollectionView isn't playing nicely with selection binding

2016-11-02 Thread Steve Mills
So NSCollectionView can bind its selectionIndexes, so I've bound that to an array controller that's shared with an NSTableView. Only one of the two are ever shown at the same time, but many things depend on the array controller's selectionIndexes. The trouble is, changes to

Re: Resize NSCollectionView items after resize

2016-10-21 Thread Steve Mills
7;t enough. I was just hoping there might be something more "built in" for the whole NSCollectionView hierarchy that would tell its item views to resize when it resizes. Seems like a pretty common thing to need. Sent from iCloud's ridiculous UI, so, s

Re: Resize NSCollectionView items after resize

2016-10-21 Thread Laurent Daudelin
udelin http://www.nemesys-soft.com/ <http://www.nemesys-soft.com/> Logiciels Nemesys Software > On Oct 20, 2016, at 19:48, Steve Mills wrote: > > On Oct 20, 2016, at 17:26:47, Laurent Daudelin > wrote: >> >> I used a UICollectionView in an iPad app. But the NSCol

Re: Resize NSCollectionView items after resize

2016-10-20 Thread Steve Mills
On Oct 20, 2016, at 17:26:47, Laurent Daudelin wrote: > > I used a UICollectionView in an iPad app. But the NSCollectionView is very > similar. The only difference I can tell is that, when you drag a collection > view onto your view controller view, you get contentArray layout type

Re: Resize NSCollectionView items after resize

2016-10-20 Thread Laurent Daudelin
I used a UICollectionView in an iPad app. But the NSCollectionView is very similar. The only difference I can tell is that, when you drag a collection view onto your view controller view, you get contentArray layout type. But, if you switch to “Flow”, you will automatically get a collection

Resize NSCollectionView items after resize

2016-10-20 Thread Steve Mills
I have an NSCollectionView whose items' size are dependent on a zoom slider, with the largest zoom fitting 1 item within the width or height of the enclosingScrollView. What's the best way to cause the items to resize as a result of the NSCollectionView being resized (caused by win

Re: Yosemite NSCollectionView appropriate for spreadsheet-like view?

2016-05-03 Thread Jonathan Mitchell
> On 1 May 2016, at 17:06, thatsanicehatyouh...@me.com wrote: > > My guess is that since the basic unit here is NSTableRowView, all of the > columns are loaded into each row view whether they are on the screen or not. > View based table views recycle their views and I have found them to be ver

Re: Yosemite NSCollectionView appropriate for spreadsheet-like view?

2016-05-03 Thread Robert Clair
share it. …Robert > > Message: 1 > Date: Tue, 03 May 2016 11:53:16 -0700 > From: Jens Alfke mailto:j...@mooseyard.com>> > To: thatsanicehatyouh...@me.com <mailto:thatsanicehatyouh...@me.com> > Cc: cocoa-dev@lists.apple.com <mailto:cocoa-dev@lists.apple.com> >

Re: Yosemite NSCollectionView appropriate for spreadsheet-like view?

2016-05-03 Thread Jens Alfke
> On May 3, 2016, at 12:33 PM, Alex Kac wrote: > > There is the old NSCollectionView and the new. You have to use the new > delegate methods and so on. Its the same class, but behind the scenes the new > collection view is literally the UICollectionView from iOS ported over

Re: Yosemite NSCollectionView appropriate for spreadsheet-like view?

2016-05-03 Thread Alex Kac
There is the old NSCollectionView and the new. You have to use the new delegate methods and so on. Its the same class, but behind the scenes the new collection view is literally the UICollectionView from iOS ported over (syslog even says UICollectionView…). Its not *at all obvious*. I know I

Re: Yosemite NSCollectionView appropriate for spreadsheet-like view?

2016-05-03 Thread Jens Alfke
> On May 3, 2016, at 12:08 PM, thatsanicehatyouh...@me.com wrote: > > I should have been more specific - my understanding was that NSCollectionView > from 10.11 onward did not do this... which Alex Kac just beat me to > mentioning! I was curious if anyone was aware of limitation

Re: Yosemite NSCollectionView appropriate for spreadsheet-like view?

2016-05-03 Thread thatsanicehatyouhave
nding was that NSCollectionView from 10.11 onward did not do this... which Alex Kac just beat me to mentioning! I was curious if anyone was aware of limitations of this scope with that caveat. I will note that I found this by Matt Ball which looks interesting: https://github.com/mattball/mbtablegri

Re: Yosemite NSCollectionView appropriate for spreadsheet-like view?

2016-05-03 Thread Alex Kac
oblem it occurred to me that the new(ish) >> NSCollectionView might be a viable replacement in this case. Before I go >> down the rabbit hole, is it reasonable to use to create a spreadsheet-like >> view? > > No, because it eagerly creates a view for every item in the

Re: Yosemite NSCollectionView appropriate for spreadsheet-like view?

2016-05-03 Thread Jens Alfke
> On May 1, 2016, at 9:06 AM, thatsanicehatyouh...@me.com wrote: > > As I've been thinking about this problem it occurred to me that the new(ish) > NSCollectionView might be a viable replacement in this case. Before I go down > the rabbit hole, is it reasonable to use to

Yosemite NSCollectionView appropriate for spreadsheet-like view?

2016-05-01 Thread thatsanicehatyouhave
ether they are on the screen or not. As I've been thinking about this problem it occurred to me that the new(ish) NSCollectionView might be a viable replacement in this case. Before I go down the rabbit hole, is it reasonable to use to create a spreadsheet-like view? What I'd like fr

NSCollectionView transparent background

2014-09-28 Thread dangerwillrobinsondanger
Is it possible to get NSCollectionView to render with a transparent background ? I've tried setting the backgroundColors array to clearColor, subclassing and filling in drawRect with clearColor, making sure the enclosing scroll view is not drawing its background and combinations of these a

Drop on a NSCollectionView

2014-06-12 Thread Gordon Apple
Can¹t seem to get this to work. I have a collection view in a popover (dismissed with a ³close² button) launched from a sheet. Delegate is set to controller which declares NSCollectionViewDelegate, implements the validate and accept drop protocols. Collection view (not the enclosing scroll view) is

Re: NSCollectionView horizontal scrolling problem

2014-01-26 Thread Lee Ann Rucker
t; Sent: Sunday, January 26, 2014 4:47:40 AM Subject: NSCollectionView horizontal scrolling problem Hi all, I have a NSCollectionView that displays some NSView objects in one column only. Now I want to programmatically increase the width of one (or all) object to show more deta

Re: NSCollectionView horizontal scrolling problem

2014-01-26 Thread Jens Alfke
On Jan 26, 2014, at 4:47 AM, Livio Isaia wrote: > but the NSCollectionView doesn’t enable horizontal scrolling (of course I > have NSScrollView->NSClipView->NSCollectionView). It's the scrollview that does the scrolling, not the collection view. I'll admit that getti

NSCollectionView horizontal scrolling problem

2014-01-26 Thread Livio Isaia
Hi all, I have a NSCollectionView that displays some NSView objects in one column only. Now I want to programmatically increase the width of one (or all) object to show more details in it, so: [myObject setFrameSize:newSize]; [collectionView setFrameSize:newSize]; but the NSCollectionView

NSCollectionView item crashes when bound

2013-09-16 Thread Benjamin Rindt
Hey guys I'm really grinding with the NSCollectionView when its bound. I had a running collection view but wanted to use bindings, I looks like it should work, but it doesn't. This is written just in code not in IB. Hope you guys can help :) The problem is, the View is displayed

Re: NSCollectionView - different highlight color

2013-05-23 Thread Keary Suska
On May 23, 2013, at 4:16 PM, Eric Gorr wrote: > Is it possible to get control over the highlight color of the selected item? > > I would like a different highlight color used when the control does not have > focus. When did NSCollectionView get selection highlighting? Last I used

NSCollectionView - different highlight color

2013-05-23 Thread Eric Gorr
Is it possible to get control over the highlight color of the selected item? I would like a different highlight color used when the control does not have focus. Thank you. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admi

Re: Dragging from NSCollectionView in inactive window?

2013-03-10 Thread Rick Mann
On Mar 10, 2013, at 16:47 , Rick Mann wrote: > Hi. I have a library window with items in an NSCollectionView that I'd like > to be able to drag from without first making the window active. Is this > possible? > > I see I can set -[NSView acceptsFirstMouse:], but that

Dragging from NSCollectionView in inactive window?

2013-03-10 Thread Rick Mann
Hi. I have a library window with items in an NSCollectionView that I'd like to be able to drag from without first making the window active. Is this possible? I see I can set -[NSView acceptsFirstMouse:], but that will make it accept all mouse clicks and then make the window active. I

NSCollectionView and key view loop

2013-03-10 Thread Martin Hewitson
Dear list, I've been struggling with this for hours and I think it really shouldn't be this hard, so I thought I'd post the problem. I have an app that contains an NSCollectionView. Each item in the collection view has three text fields. I have finally managed to get the first t

NSCollectionView not updating

2012-12-20 Thread Gordon Apple
We have a collection view, with its own nib and viewController, in a popover. Individual cells are modified clones of the prototype. The collection displays a list of controllers that depend on the main screen content. Opening the popover correctly shows all the relevant elements and controls wo

Re: Layers in NSCollectionView (solved)

2012-12-08 Thread Gordon Apple
Some things turn out to be simple, if you know where to look. I¹m posting this in case anyone else runs into this issue. Unfortunately, the Collection View Guide does not mention it. The solution is to subclass NSCollectionView and override newItemForRepresentedObject. It gives you the

Re: Layers in NSCollectionView

2012-12-04 Thread Gordon Apple
want one document that explicitly describes > *precisely* what AppKit does and does not control in each case. :-/ > > I did just remember something, though: NSCollectionView copies its collection > items around in some sort of crazy way that was subtly changed with the > introduction

Re: Layers in NSCollectionView

2012-12-02 Thread Kyle Sluder
explicitly describes *precisely* what AppKit does and does not control in each case. :-/ I did just remember something, though: NSCollectionView copies its collection items around in some sort of crazy way that was subtly changed with the introduction of NSViewController. Is it possible that the

Re: Layers in NSCollectionView

2012-12-02 Thread Gordon Apple
wrote: >> > I have a simple subview in my NSCollectionView prototype. (Collection >> > view >> > is in a popover. Popover launched from a floating control panel.) It >> > contains the following: >> > >> > - (void) awakeFromNib { >&

Re: Layers in NSCollectionView

2012-12-02 Thread Kyle Sluder
On Sun, Dec 2, 2012, at 03:07 PM, Gordon Apple wrote: > I have a simple subview in my NSCollectionView prototype. (Collection > view > is in a popover. Popover launched from a floating control panel.) It > contains the following: > > - (void) awakeFromNib { > C

Layers in NSCollectionView

2012-12-02 Thread Gordon Apple
I have a simple subview in my NSCollectionView prototype. (Collection view is in a popover. Popover launched from a floating control panel.) It contains the following: - (void) awakeFromNib { CALayer *originalLayer = self.layer; CALayer *newLayer = [CALayer layer

Re: One more try - NSCollectionView multi-selection problem..

2012-07-10 Thread Keary Suska
n for the current event, grab the selection index and fill in the > gaps. Then call -setSelectionIndexes: Except that you're thinking about NSTableView--NSCollectionView doesn't have any delegate methods for selection semantics, that I know of. It sounds fragile to me but

Re: One more try - NSCollectionView multi-selection problem..

2012-07-09 Thread Graham Cox
On 10/07/2012, at 4:37 PM, Robert Monaghan wrote: > Ok, > > So in the meantime, I have a bunch of customers filing bugs/feature requests > to implement this ability.. > (Its a popular request, shall we say..) > > Is this something that can be overridden, turned on/off? Has anyone done this?

Re: One more try - NSCollectionView multi-selection problem..

2012-07-09 Thread Robert Monaghan
con views, i.e. they > toggle the clicked item. > > --Graham > > > > > > On 09/07/2012, at 5:34 PM, Robert Monaghan wrote: > >> Hi Everyone, >> >> In a previous posting, I had a problem with NSCollectionView not selecting a >> range of

Re: One more try - NSCollectionView multi-selection problem..

2012-07-09 Thread Graham Cox
oggle the clicked item. --Graham On 09/07/2012, at 5:34 PM, Robert Monaghan wrote: > Hi Everyone, > > In a previous posting, I had a problem with NSCollectionView not selecting a > range of objects, when shift-selecting items. > For example, if I were to click on object "3

One more try - NSCollectionView multi-selection problem..

2012-07-09 Thread Robert Monaghan
Hi Everyone, In a previous posting, I had a problem with NSCollectionView not selecting a range of objects, when shift-selecting items. For example, if I were to click on object "3" and then shift-click on object "5", I would expect a range of 3,4,5 to be highlighted. Inst

Re: NSCollectionView mouseDown/drag is really slow.

2012-02-07 Thread Robert Monaghan
Robert Monaghan wrote: > >> Hi Everyone, >> >> I have just read all of the posts that I can find about the NSCollectionView >> and selecting an item (or items) for a drag operation. As others have >> pointed out, the selection takes about 1 second for a drag operat

Re: NSCollectionView mouseDown/drag is really slow.

2012-02-07 Thread Lee Ann Rucker
On Feb 7, 2012, at 7:47 AM, Robert Monaghan wrote: > Hi Everyone, > > I have just read all of the posts that I can find about the NSCollectionView > and selecting an item (or items) for a drag operation. As others have pointed > out, the selection takes about 1 second for a dr

NSCollectionView mouseDown/drag is really slow.

2012-02-07 Thread Robert Monaghan
Hi Everyone, I have just read all of the posts that I can find about the NSCollectionView and selecting an item (or items) for a drag operation. As others have pointed out, the selection takes about 1 second for a drag operation to be processed. This is a real sore spot when using the

Re: NSCollectionView and selecting a range?

2012-01-20 Thread Lee Ann Rucker
On Jan 20, 2012, at 4:39 AM, Robert Monaghan wrote: > Hi Everyone, > > This has been asked before by another Cocoa-dev follower, but there wasn't an > answer... > I have an NSCollectionView where I want to be able to "Shift-click" a range > of Icons. >

NSCollectionView and selecting a range?

2012-01-20 Thread Robert Monaghan
Hi Everyone, This has been asked before by another Cocoa-dev follower, but there wasn't an answer... I have an NSCollectionView where I want to be able to "Shift-click" a range of Icons. Strangely, I can Command-click a range of individual icons, but a shift-click of a rang

Question about selection in a NSCollectionView

2011-11-16 Thread Luc Van Bogaert
Hi, I have a NSCollectionView in which selection changes are observed by a viewcontroller object, that will in turn change its view according to the nature of the selection change. (Think of it as a image browser or something similar) In some circumstances however, I want to alert the user

Re: nscollectionview dims and brightens frequently with call to setContent:

2011-11-11 Thread Michael Hanna
Yeah, you're right that will work.. thanks. Michael On Fri, Nov 11, 2011 at 10:46 AM, Kyle Sluder wrote: > On Nov 11, 2011, at 6:43 AM, Michael Hanna wrote: > > > Hi Kyle et. al. > > > > On network refreshes, rebuild an entire temp array from an xml blob all > over again to include changes to

Re: nscollectionview dims and brightens frequently with call to setContent:

2011-11-11 Thread Kyle Sluder
On Nov 11, 2011, at 6:43 AM, Michael Hanna wrote: > Hi Kyle et. al. > > On network refreshes, rebuild an entire temp array from an xml blob all over > again to include changes to individual items in the array. They are an array > of NSMutableDictionary. This is not ideal, I know but not sure o

Re: nscollectionview dims and brightens frequently with call to setContent:

2011-11-11 Thread Michael Hanna
ing seems to persist. Am I initializing the binding correctly? just for the heck of it, I subclassed NSCollectionView and overrode -setContent: like this: - (void)setContent:(NSArray *)content { [NSAnimationContext beginGrouping]; [[NSAnimationContext currentContext] setDuration:0.0]; [supe

Re: nscollectionview dims and brightens frequently with call to setContent:

2011-11-10 Thread Kyle Sluder
On Thu, Nov 10, 2011 at 3:09 PM, Michael Hanna wrote: > in an nscollectionview, I call setContent: every time I get a new item for > the collection view. The annoying side-effect of this is that the whole > view dims and brightens each time setContent: is called.. not visually > app

nscollectionview dims and brightens frequently with call to setContent:

2011-11-10 Thread Michael Hanna
in an nscollectionview, I call setContent: every time I get a new item for the collection view. The annoying side-effect of this is that the whole view dims and brightens each time setContent: is called.. not visually appealing. I've tried disabling CATransactions while calling setContent

Re: How to remove items from NSCollectionView without view selection

2011-10-17 Thread Ron Fleckner
On 18/10/2011, at 4:25 PM, Sandeep Mohan Bhandarkar wrote: > Hi All, > > I have created a NSCollectionView currently i am able to add prototypeItems > to this view. For removing items i have a "-" button which i have placed > in the prototypeItemView itself. I have als

How to remove items from NSCollectionView without view selection

2011-10-17 Thread Sandeep Mohan Bhandarkar
Hi All, I have created a NSCollectionView currently i am able to add prototypeItems to this view. For removing items i have a "-" button which i have placed in the prototypeItemView itself. I have also written an IBAction for its removal. It is as provided below -(IBAction)remove

Re: Pop-up menu in NSCollectionView

2011-10-13 Thread Lee Ann Rucker
Mine works fine on 10.6 and 10.7, but I'm implementing menuForEvent: in my NSCollectionView subclass instead of using bindings On Oct 13, 2011, at 4:13 PM, Graham Cox wrote: > I'm using NSCollectionView to display a bunch of items. I have the 'menu' > outlet of thi

Pop-up menu in NSCollectionView

2011-10-13 Thread Graham Cox
I'm using NSCollectionView to display a bunch of items. I have the 'menu' outlet of this view connected to a menu which in turn sends an action to File's Owner. On 10.7 this works as expected (menu is displayed when right-clicking in the view), but on 10.6.x, the menu is

Re: drawRect not being called by NSCollectionView..

2011-10-12 Thread Robert Monaghan
ll, they are showing up if you like garbage all over the NSView.) In IB, I enabled the Core Animation Layer for my NSView. Then I enabled a Core Animation layer for my NSCollectionView. Things are almost working! However: - Not all of the imagery is properly re-drawn. - Why is my first NSCollect

Re: drawRect not being called by NSCollectionView..

2011-10-10 Thread Robert Monaghan
, but the call to superview fails, because it is set to nil. Just for laughs, I created another NSCollectionView, with NSArrayController, etc, and manually add objects. This works, with the NSViews displaying properly. Is there a way to force NSCollectionView to reload/re-display the NSViews with a

drawRect not being called by NSCollectionView..

2011-10-10 Thread Robert Monaghan
Hi Everyone, I can't seem to get an NSCollectionView to render an of the NSCollectionViewItems' NSViews. I have an NSCollectionView that is bound to an NSArrayController's arrangedObjects. The NSCollectionViewItem is set up as a template, and also has its Outlet attached to an

Re: NSCollectionView deselection

2011-07-13 Thread arri
nt_2190 So, in your implementation of setSelected: in your NSCollectionViewItem-subclass, also call [super setSelected:..] Something to easily overlook. g arri On Tue, Mar 2, 2010 at 8:25 PM, Markus Spoettl wrote: > On Mar 2, 2010, at 10:52 AM, Thomas Davie wrote: >> The NSCollecti

NSTableView, NSCollectionView or CALayers?

2011-05-23 Thread Marcelo Alves
Animation, so I was checking NSCollectionView, but it looks "odd", I couldn't find a way to change just one view in the collection, so I was wondering, should I start this UI from scratch using CALayers and a NSScrollView / CAScrollView, stick with NSCollectionView or animate the NSCe

Nested NSCollectionView scroll weirdness

2011-05-04 Thread Half Activist
Hello all, I'm having kind of troubles with embedded collection views. I'm displaying a list of items vertically, each of these items may have subitems i list in another collection view, this time horizontally. Everything fine so far, the NSCollectionViewItems get loaded w

NSCollectionView and firstResponder madness

2011-03-23 Thread Dave DeLong
Hi everyone, I have an NSCollectionView in a sheet. The NSCV does not allow selection and is used for displaying a list (so maxNumberOfColumns = 1) of views. These views have things like NSComboBoxes and NSTextFields in them. I'm trying to figure out how to be able to tab from textfie

Re: Drag image creation for NSView with CALayer in NSCollectionView calls drawRect:?

2011-03-14 Thread Lee Ann Rucker
d raster > drawing path to generate drag images. Even if you don't call > -drawRect: (which NSCollectionView presumably does to insulate you > from its implementation details), the drag image is a static bitmap. I > suppose you could use a CARenderer to produce a static bitmap from >

Re: Drag image creation for NSView with CALayer in NSCollectionView calls drawRect:?

2011-03-14 Thread Kyle Sluder
drawRect: (which NSCollectionView presumably does to insulate you from its implementation details), the drag image is a static bitmap. I suppose you could use a CARenderer to produce a static bitmap from within -drawRect:. I believe we've determined that the window update machinery does not c

Drag image creation for NSView with CALayer in NSCollectionView calls drawRect:?

2011-03-14 Thread Lee Ann Rucker
I have an NSCollectionView with NSCollectionViewItems that have, amongst other things, a layer-hosting NSView with CALayers. The collectionView has wantsLayers set, and everything there is working nicely - draw, scroll, reorder animation. The trouble comes when I try to drag them. The

Re: NSCollectionView start dragging immediately

2011-01-05 Thread Lee Ann Rucker
On Jan 5, 2011, at 9:33 AM, Martin Hewitson wrote: > Dear List, > > I have an app which contains a collection view with items which are supposed > to be re-ordered by the user. All is working well apart from one niggle: the > user has to click and hold down the mouse button for about 1 second b

NSCollectionView start dragging immediately

2011-01-05 Thread Martin Hewitson
Dear List, I have an app which contains a collection view with items which are supposed to be re-ordered by the user. All is working well apart from one niggle: the user has to click and hold down the mouse button for about 1 second before a drag begins. This is most unintuitive and it took me

Re: Selection in NSCollectionView

2010-11-02 Thread Lee Ann Rucker
What I've done is have a custom NSView subclass that all my CollectionViewItems use, which subclasses hitTest: and mouseDown: - (NSView *)hitTest: (NSPoint)aPoint // IN { NSView *hitView = [super hitTest:aPoint]; if (hitView && ![hitView isKindOfClass:[NSTextField class]]) { hitView =

Re: Selection in NSCollectionView

2010-11-02 Thread Andrew Shamel
Hi there great and wise Cocoa-Dev! I am wondering if anyone knows if there has been any movement regarding how selection is handled in NSCollectionViews. I see there was some conversation on this subject a couple of years back (http://www.cocoabuilder.com/archive/cocoa/217489-selection-in-nsco

Re: NSCollectionView file promise drag & drop and selection

2010-10-01 Thread Nick Zitzmann
On Oct 1, 2010, at 1:19 AM, Markus Spoettl wrote: > Are you sure that is the case? My collection views work the same on Leopard > and Snow Leopard. Yes, I'm sure. I just ran the SourceView sample application on two different computers, one running Leopard and the other running Snow Leopard. O

Re: NSCollectionView file promise drag & drop and selection

2010-10-01 Thread Markus Spoettl
On Sep 30, 2010, at 4:25 PM, Nick Zitzmann wrote: > I searched for answers for these two questions and did not find anything > pertinent: > > 1. I noticed that, on Snow Leopard, when the user clicks on a collection view > item, the item is selected, but it doesn't do this on Leopard. Instead, on

NSCollectionView file promise drag & drop and selection

2010-09-30 Thread Nick Zitzmann
eopard. So has anyone figured out how to get NSCollectionView's selection behavior on Snow Leopard to work on Leopard as well? 2. I'm also wondering if anyone has been successful in doing file promise drags with NSCollectionView in Snow Leopard, and if so, then what did you have to do to

NSTextView in NSCollectionView doesn't draw

2010-08-10 Thread Rainer Standke
Hello, In a core data document based app I have a NSTextView inside an NSCollectionView. The text view's value is bound to a core data attribute. When a document is opened the text does not draw in the text view. When the user clicks the view it will draw the text correctly. The text a

IKImageView in NSCollectionView: No Core Animation Effects

2010-07-16 Thread Rainer Standke
Hello, I have replaced a bunch of NSImageViews with IKImageViews in my app. These image views are presented inside an NSCollectionView. Both the NSImageViews and the IKImageViews had shadows turned on in IB. The NSImageViews' shadows showed up fine, but the IKImageViews' shadows are

NSCollectionView and selecting range

2010-07-12 Thread Georg Seifert
Hi, I asked this in my last post, but this was under the wrong topic. My question: In a NSCollectionView: How do I allow the range selection with the shift key (like in a tableView)? Best Regards Georg ___ Cocoa-dev mailing list (Cocoa-dev

Re: Why does NSCollectionView want to encode items in PopUp Menu?

2010-06-17 Thread Kyle Sluder
On Jun 17, 2010, at 8:29 PM, Jerry Krinock wrote: > The conclusion is that I decided to not use NSCollectionView in this > application. Even though "everybody knows" this is what usually happens when people try to use NSCollectionView, it's not gonna get any better

Re: Why does NSCollectionView want to encode items in PopUp Menu?

2010-06-17 Thread Jerry Krinock
The conclusion is that I decided to not use NSCollectionView in this application. Besides this mysterious non-encoding of representedObjects in my popup button menu, I've also realized that NSCollectionView does not allow me to enable different menu items in the popup button menus in diff

Why my Custom NSCollectionView drawRect is not being called when acceptinLayers?

2010-06-17 Thread Gustavo Pizano
Hello all. I have subclasses NSCollectionView to be able to draw a custom background gradient. When that collectoin view doesn't accepts layers or its parent view neither, the gradient its drawn, the drawRect method its called, but if the collection view accepts layer or its parent does,

Re: Why does NSCollectionView want to encode items in PopUp Menu?

2010-06-16 Thread Jerry Krinock
On 2010 Jun 16, at 17:03, Graham Cox wrote: > On 17/06/2010, at 9:20 AM, Jerry Krinock wrote: > >> Why might the collection view feel it needs to encode the items in this >> popup menu? > > Isn't the view template copied by archiving/dearchiving, since NSView doesn't > support NSCopying? Hmm

Re: Why does NSCollectionView want to encode items in PopUp Menu?

2010-06-16 Thread Graham Cox
On 17/06/2010, at 9:20 AM, Jerry Krinock wrote: > Why might the collection view feel it needs to encode the items in this popup > menu? Isn't the view template copied by archiving/dearchiving, since NSView doesn't support NSCopying? A similar problem I've run into is that when you set -repre

  1   2   3   >