NS collection view  or NSCollectionView, what it does, a documentation

hi.
if you're here, you're looking for documentation for the poorly described collection view. This is by no means exhaustive, but it is meant to complement and expand on Apple's official documentation. As far as I know this information IS NOT embargoed, just simply not documented yet. I want to focus on what it is, and what its features are, so that you, the developer new to collection views, do not have to try it, in order to decide if it works for you.
a collection view, represents objects with Views, in a similar way that matrices do with Cells.
the collection view lays out and dynamically tracks its content. it works very well with bindings, and expects to have a view prototype. It uses a Controller object called a collection view item (NSCollectionViewItem) to negotiate the tricky steps you'd have to go through to get the controls in the subView to hook up to the correct object.
as a developer, you create the collection View, you design the contents of the subView prototype, and you Bind the contents of the Subview to a special binding in the CollectionView Item. And finally you bind the content of the collectionView to an ArrayController. (you can do alll this programatically of course, but... you'd have to be insane)
At run time, the CollectionView asks its content for an array of representedObjects.
it then makes a new collectionViewItem for each represented object, and if you've bound your prototype view properly... the controls will be automatically bound to the right object.
from that point on, the collectionView man handles the subviews. it can auto resize them, it can shuffle them around so that they fit the collection view, and it has some cool options with hidden potential.
but... if you want to justify the subviews (have them crowd around the top of the collectionView) you can't
if you want to resize your subviews, (like the disclosure inspectors you can find in Painter, that are represented by bars, until you click on the bar, and it expands to get at the details) the collectionView has no mechanism to respond to subViews that change size.
theres my short description of NSCollectionView. if you have more to add, or questions, please feel free to post.

don't worry, it's normal and it will fade away by itself. If not, take it to your apple store

Similar Messages

  • Powerpoint Mac 11.3.2 version converting to Google Docs Presentation, I'm told I need Quicktime and a compressor to view images. What does this mean?

    Starting with files in
    Powerpoint Mac 11.3.2 version converting to Google Docs Presentation, I'm told I need Quicktime and a compressor to view images. What does this mean?

    Were you using third-party software when the panic occurred? Is the panic repetitive or it just happened once? IN the latter case it could simply be a software glitch. But if it's repetitive then there's some other problem either hardware or software. Use the Console application in the Utilities folder and review the console log around the time of the panic to see if there are additional clues to the cause of the panic.
    The error indicates that the problem was a failure to respond to an interrupt by the CPU. Now this could simply be caused by a software glitch, but it could be a hardware problem related to the CPU. In the latter case the panic would probably become repetitive, in which case you would want to take the computer in for service to be sure the CPU isn't failing.

  • Create New Operations for data collection(View Object)

    ADF data collection(View Object) supports Create, CreateInsert, Delete, etc operations.
    And would like to add more operations like clear, etc. How do i create my own operation and add it to data control for all the view objects in the data control.
    Thanks
    JP

    hi esjp2000
    I'm not sure what kind or "clear operation" you are looking for, but I recently asked about a "clear search" in this forum thread:
    " ADF BC : "clear search" using executeEmptyRowSet() "
    ADF BC : "clear search" using executeEmptyRowSet()
    It is about the executeEmptyRowSet() method, and that might not be what you are looking for. (It might not even be what I am looking for because it is undocumented and that is what my question is about and I haven't had an aswer yet.)
    But ... it does provide an example of a "service method" Shay is referring to, in the example application:
    http://verveja.footsteps.be/~verveja/files/oracle/ClearSearchStuff-v0.01.zip
    (So, the specific service method implementation, "ScottServiceImpl.executeEmptyRowSetOnEmpWithParamsVOVI()" in the example, would be different in your case, depending on the specific "clear operation" you are looking for.)
    success
    Jan Vervecken

  • Strange problem with Outlets and Collection View Items

    This is a strange issue. I am using XCode 3.2.2 and I am building a Collection View. To do this I have a non-document based application that uses Core Data.
    *Collection View Item Class*
    I created a new class that inherits NSCollectionViewItem and built it to have an outlet to the Label.
    *Collection View Item NIB*
    I created a Empty NIB for my Collection View Item. To the NIB I added a Custom View object and set the Class Identity to NSBox. I then added a Label to the new NSBox. I changed the File Owner to the new class and connected the "view" outlet to the new NSBox and the Label to the label outlet.
    *Main Menu NIB*
    I added a new NSCollectionViewItem object to the Main Menu NIB and set the Class Identity to the new class mentioned above. I then set the NIB Name to the name of the NIB mentioned above. In the window I added a NSCollectionView then set its Item Prototype to the new NSCollectionViewItem object I just configured. This is the typical way to set up a collection view with its item in a different NIB.
    *Back to the problem*
    Everything seem to work well except that in the setRepresentativeObject in the Collection View Item class when it attempts to set the Label to a value. Nothing happens. When I check closely I find that the Label is coming back nil. It is properly linked. I deleted everything and rebuilt the collection view item and relinked everything without success.
    *How I made it work but not happy with it*
    I have finally made this work by simply putting the line "[self view];" just before I attempt to run "[label setStringValue:name];". If I remark out the "[self view];" the label returns nil. I have a note near the line to make it easier to spot. It seems that I should not need to access the superclass's "view" accessor just to access one of view's subviews. Is this a bug or have I written this wrong?
    The Collection View Item code is below. Any help is appreciated.
    Thanks,
    Rob
    #import <Cocoa/Cocoa.h>
    #import "PersonManagedObject.h"
    @interface PersonSelectionViewItem : NSCollectionViewItem {
    NSTextField *label;
    #pragma mark Finalizers
    - (void)dealloc;
    #pragma mark Outlets
    @property (nonatomic, assign) IBOutlet NSTextField *label;
    #pragma mark Instance Methods
    - (void)configureKeyValueObserving;
    - (void)removeKeyValueObserving;
    #pragma mark Overrides
    - (void)setRepresentedObject:(id)representedObject;
    - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context;
    @end
    #import "PersonSelectionViewItem.h"
    @implementation PersonSelectionViewItem
    #pragma mark Finalizers
    - (void)dealloc{
    [self removeKeyValueObserving];
    [super dealloc];
    #pragma mark Outlets
    @synthesize name;
    #pragma mark Instance Methods
    - (void)configureKeyValueObserving{
    PersonManagedObject *person = (PersonManagedObject *)[self representedObject];
    [person addObserver:self forKeyPath:@"lastNameFirstName" options:0 context:NULL];
    - (void)removeKeyValueObserving{
    PersonManagedObject *person = (PersonManagedObject *)[self representedObject];
    [person removeObserver:self forKeyPath:@"lastNameFirstName"];
    #pragma mark Overrides
    - (void)setRepresentedObject:(id)representedObject{
    [super setRepresentedObject:representedObject];
    NSString *personName = (NSString *)[representedObject valueForKey:@"lastNameFirstName"];
    [self view]; //<---Without this line the "label" variable 2 lines down will be nil.
    if (personName) {
    [label setStringValue:personName];
    [self configureKeyValueObserving];
    - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context{
    if ([keyPath isEqualToString:@"lastNameFirstName"]) {
    [[self label]setStringValue:[object valueForKey:@"lastNameFirstName"]];
    } else {
    [super observeValueForKeyPath:keyPath ofObject:object change:change context:context];
    @end

    I think you must be correct. I just ran into the problem again in yet another NIB. It was in the setRepresentedObject method. I simply put in the same line "\[self view\]" just before I needed to set the value of the view component and it worked again. If it is the same in other components I guess I just need to pay attention to it. Thanks for the information.
    Message was edited by: Cycles4Fun

  • What exactly does the colaece option do in TOAD software

    Hi,
    What exactly does the colaece option do in TOAD software.
    Regards,
    MuruguPandian P

    Coalesce will take ADJACENT free space and coalesce it into one larger free chunk.
    A free extent in a dictionary-managed tablespace is made up of a collection of contiguous free blocks. When allocating new extents to a tablespace segment, the database uses the free extent closest in size to the required extent. In some cases, when segments are dropped, their extents are deallocated and marked as free, but adjacent free extents are not immediately recombined into larger free extents. The result is fragmentation that makes allocation of larger extents more difficult.
    You should often use the ALTER TABLESPACE ... COALESCE statement to manually coalesce any adjacent free extents. To Coalesce a tablespace give the following command
    SQL> alter tablespace ica coalesce;
    Source: http://www.oracle-dba-online.com/tablespaces_and_datafiles.htm
    Regards
    Asif Kabir

  • What content does my iPad support?

    What content does my I-Pad support so I can watch videos? Because it will not let me download Adobe Flash Player.

    iOS does not support Flash so you don't need to worry about trying to download it.  This is why you can't view flash media or play games coded in flash.
    You can watch YouTube videos (there are some that will not play because they are not in the proper format for iOS. 
    There is an MP4 format that iOS uses so you can rip DVD's you own to this version of MPEG video.  It usually takes a couple of steps then you import the final MP4 file into iTunes and sync it to your iPad.
    iDevices support MP3 music as well as the ACC music format.
    And I believe the format of choice for photo's is JPEG.

  • Aperture - What it Does

    Today I was given a lovely gift - Aperture! However, I am trying to learn what it does exactly. Can anyone tell me?
    I do a lot of work with Photoshop and presently keep thousands of images in iPhoto. I also make a lot of videos. I was told Aperture would be very useful to me but can you tell me how? I know I have been saying for a while that I miss using Adobe Bridge. Is Aperture something I can use in its place?
    Also, is it possible to import my folders and albums from iPhoto into Aperture?
    I am trying to figure out how best to put this program to use.

    The Aperture Library and the iPhoto Library now share a common file format:  you can open any Library in either program.  As long as your iPhoto program is relatively up-to-date, you can simply use "File➞Open" in Aperture and select your existing Library.  To restate this important point: there is currently no reason at all to import any part of an iPhoto Library into Aperture.
    Aperture helps you do two things very well.  It's gives you superb tools to organize your digital photograph collection, and it gives you superb tools to develop individual pictures to be as good as they can be.
    It does _not_ composite images (or text, or shapes).  For that you'll need an external editor.  Many use Photoshop.  Aperture interacts well with whatever external editor you use.
    I have published a short guide to Aperture you may find useful, as well as a list of resources for those getting started.  You might also search the forum for "Aperture and Photoshop" -- your question is a hardy perennial.
    You should also read this recent post by Léonie re: iPhoto and Aperture.  The links are helpful.
    Ask away -- we have a skilled and helpful crowd here.

  • What benefits does the new CMM bring to the table??

    After installing the new Colour Management Module, I now have the new option of 'Adobe CMM' as well as the old 'Adobe ACE' and 'Microsoft ICM' in Photoshop CS3 and other Adobe applications.
    What benefits does the new CMM bring to the table?? As it is new, I would expect benefits, otherwise resources would not have been wasted in creating it, but what benefits??

    anyone got any ideas why my digital (raw) images from the camera - once downloaded to computer present when viewed in explorer photo /fax viewer as the colours which they print with yet if I save the image into Photoshop elements V5 to crop, zoom, and otherwise manipulate they look EXTREMELY washed out in photoshop V5. This of course means that if I want to adjust colour, brightness etc I have to keep saving and going back to explorer photo /fax viewer to see what they REALLY will print like.

  • What exactly does am.invokeMethod() do?

    Can any one please explain what exactly does this am.invokeMethod() do
    and I would like to ask about the setForwardURL also.
    regards
    Ram

    Hello,
    setForwardURL() method is used to call another page from current page.
    here is the signature of the method..
    void setForceForwardURL(String url,
    String functionName,
    byte menuContextAction,
    String menuName,
    com.sun.java.util.collections.HashMap parameters,
    boolean retainAM,
    String addBreadCrumb,
    byte messagingLevel);
    Sequence of parameters are very important and you should not change it.
    Menu Context - This paramter determines the display of "Menus" on top of the page.
    Eg. In Iprocuremet you would have seen "shopping", "Requistions", "Receipts" etc
    This menu comes from AOL menus and functions. Hence while navigating from one page to another you have to tell the OAF whether you want to keep the existing menu or reset to new menus or remove the menus etc.
    Bread crumb is a small back navigation link that gets added to the top of the page below the Menus. It allows the user to navigate back to previously visted pages.
    messaging LeveL - Used to determine if the forward should be cancelled if messages or exceptions of level Error, Warning, Confirmation, or Information are found. Note all messages present will be shown regardless of the level.
    Eg: if you have said OAException.WARNING in this parameter, then the page navigation will be for any warnings generated with in the page
    Regards,
    Manish Chawla

  • How does APEX create and save new files. What extension does it save in?

    Hi can someone help me with this question?
    How does APEX create and save new files. What extension does it save in?
    Cheers!
    VJ

    It's really too bad we can't see VJ's face when the concept sinks in. This is one of my favorite moments when teaching APEX classes. Most people love it, some people don't. If nothing else it really proves the power and performance of the Oracle database. Each page view can generate 40+ queries, yet on the average system this takes less than .04 seconds.
    Keep in mind there are no undocumented features or "Oracle Internals" that the APEX team uses to achieve this performance, just sound database design. With every feature they add they evaluate how it will be used and design the tables and indexes to most efficiently answer the query. Sometimes this means going against "purist" normalized principals.

  • What security does my iPad 2 have? Bit concerned as some of my accounts have been hacked in to. If it has none can anyone suggest any thing

    What security does my IPad 2 have if any. Some of my accounts have been hacked. Can anyone suggest anything. Thanks

    Not silly questions at all!
    "Safe" is a tricky term. Nobody can ever tell you that accessing websites is 100% safe. Even if you are going through an encrypted site, if you're in a public place, someone could be watching over your shoulder to see you type your login and password.
    As you say, the iPad itself is relatively (compared to PCs) secure in the sense that there is no chance of viruses or malware stealing your logins.
    But you can take sensible steps to be careful.
    If you think you have reason to be concerned about the security of any of the sites you've mentioned, I would recommend you change your passwords. Start with email - if someone else has access to your email, they will often be able to detect and reset any changes you make to other accounts. Then change the other accounts.
    Do not use the same password for all your accounts.
    Gmail has the ability to use SSL - check in your iPad's Mail settings whether "Use SSL" is ON.
    The Barclays app should certainly transmit information in an encrypted manner, so again, provided you have a good password and are cautious about logging in in public view, you're covering your bases.
    Finally, let me give you one perspective on computer security that has a lot of truth to it:
    http://xkcd.com/538/
    Matt

  • What messages does it shows the integration engine(sycn/ asyn)?

    What messages does it shows the integration engine(sycn/ asyn)?

    Status: TO_BE_DELIVERED
    Which means that the message was successfully delivered from Integration Server point of view and it states that the messages is initially handed over to the Messaging System.
    TO_BE_DELIVERED occurs while the message is put into the Messaging System receive queue.
    Solution:
    This is done via the Messaging System receive servlet:
    http://<Host>:<PORT>/MessagingSystem/receive/<CONNECTION>
    /<PROTOCOL>
    Only if this was executed successfully the Messaging System returns HTTP 200 to the Integration Server and the Status TO_BE_DELIVERED moves to DELIVERING
    1. Try logging into Sap GUI with two users: XIAPPLUSER & XIAFUSER
    to see if they are blocked
    2. We can check the messages:
    AdapterFramework
    com.sap.aii.adapterframework.serviceuser.language
    com.sap.aii.adapterframework.serviceuser.name = XIAFUSER
    com.sap.aii.adapterframework.serviceuser.pwd
    ApplicationSystem
    com.sap.aii.applicationsystem.serviceuser.language
    com.sap.aii.applicationsystem.serviceuser.name = XIAPPLUSER
    com.sap.aii.applicationsystem.serviceuser.pwd
    in the exchange profile to make sure the right passwords

  • When trying to update apps i keep getting billing method incorrect(this is on iphone 4s) i hsve tried this store,apple id,view id,payment info but does not offer me the none option,i can npt update my phone any ideas anybody please?

    when trying to update apps i keep getting billing method incorrect(this is on iphone 4s) i hsve tried this store,apple id,view id,payment info but does not offer me the none option,i can npt update my phone any ideas anybody please?

    If you dont have none option then you must own itunes some money. So you have to enter the payment like a itunes giftcard. you can contact itunes by email by going to expresslane.apple.com

  • Tour got wet - here's what it does - how can I tell if it is "fried"?

    My Blackberry Tour (from 2009 - Blackberry device manager says I am running BB OS 4.7.1)  got wet in a rainstorm (phone was outside, not submerged, the wetness indicator strip on the battery has not had a line appear on it but a tab inside the phone is all red) approx. 5 days ago - I did some of what I should have done and some of what I probably should not have done as far as patience, lack of patience, letting it dry (in gentle heat (no hair dryer, etc. or rice), giving it a try... Here's what it does - my main questions are - do I have any hope of rescuing my contacts data - unfortunately, never backed-up?  If so, how?:
    - Without the Battery in:  Connected by USB cable to my laptop (plugged-in, USBs powered) (Windows 7; Blackberry Desktop version 5 (installed from the CD that came with the phone)) finds the phone in Windows device manager (Blackberry Smartphone connected via USB), as above, Blackberry device manager shows status as connected, can identify the phone's PIN, Blackberry Desktop Manager can see that the phone is connected (can see it's PIN) but shows that the device is in Disconnected State, the screen on the phone shows the battery with red X through it.
    With a Battery In: 
    - the battery with red X goes away,
    typically starts with a red indicator light, then changes to black screen with hour glass,
    - then to black screen with "BlackBerry" and progress bar (showing boot progress?). 
    - Boot progress bar completes,
    - the screen shows the Verizon logo, then
    - I get a flash (sometimes longer than others) of my desktop picture (it's one of the pre-loaded ones that is not on the micro-SD card, which I have removed). 
    - At this point there is a new progress bar which indicates that the phone is checking security settings (I cannot remember verbatim what it says, but it typically completes and, since I probably shouldn't be powering it on, I will not do that to get an exact quote; suffice to say, that usually completes). 
    - In terms of the desktop, I can also see that, in addition to my selected picture being there , the phone remembers my alarm time at 6:40AM).
    - A couple of times when I restarted it, I held down the escape/back button during the boot and launched the phone in safe mode ("safe mode" appeared at the top of the screen - a dialog appeared that explained safe mode and allowed me to click "ok" that I accepted that I knew what safe mode was. 
    - Whether in safe mode or not, it usually at this point returned to the initial power-up sequence, in a loop, between the red indicator light and the hourglass animation - it does not return to the screen with the "BlackBerry" logo with progress bar, just the aforementioned loop.
    At this point, I have tried two batteries - both Blackberry OEM, but with known/potential issues:  1.) the battery that was in the phone at the time it got wet - is approx. a year old (in terms of use), but was holding a reliable charge for 3-4 hours of talk time and
    2.) an older battery which may have been the one that was replaced by battery 1 or may be older - it almost certainly had diminshed charge holding capacity and had started the bulge that lithium batteries develop as the near death.  These batteries were not obtaining much, if any, in the way of  charge while in the phone plugged in, but did, outwardly (light changed from orange to green on a Blackberry OEM charger form the D-X1 battery; have not done a test with a circuit tester, etc.), accept a charge via the outside the phone method.  When using the inside the phone method - prior to any outside charging - during the boot-up process, at the point at which I could see my desktop, the indicator light flashed with the orange light and/or the indicator that one typically gets when the battery is lacking needs a re-charge).
    I have received and I am currently charging a new D-X1 Blackberry OEM battery, via the aforementioned Blackberry OEM outside the phone charger, for a go-around with the closest thing that I can get to a no problems battery.  
    OK, I am an **bleep**: I tried to re-boot the phone right away, I wasn't doing a back-up (though I thought that it was 1.) the reason that I was buying a Blackberry with an SD card - that this information was going to be portable and 2.) that I thought that the tech from Verizon, way back when I bought it, set the phone up to store the information on the SD card (no such luck, not there) or the SIM card - how could I test that? (which is, perhaps, why I thought that a backup was taking place).  Anyway, as you can tell, I have tried to be as descriptive as possible herein to say what I am seeing, because there are a number of other people with similar problems posting in various places, but, not really the same problems (they are getting stuck on a white screen, not getting all the way through the boot that I describe, had a phone in the pool all day, don't care about the data, just trying to save the phone (I was lax about an upgrade, because I liked my phone and I had a decent outlay of cash in the phone to start-off - was pushing to make it to this fall, hopefully not much longer, to get the newer Blackberry Classic coming out... hopefully with my contact listing being ported over).  That said, I have found plenty of evidence that suggests saving the phone is a real possibility, but the data may be more of a challenge.
    Huge post, looking for thoughts - thanks for any consideration given to my problems.

    if booted up with out all the way dry you might have fried it
    put it in a bag of rice for a few days in a nice warm spot 90-100 F
    then try it again if it still does the same thing then its toast
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • I have one HDMI port on my television that is currently used for my hard drive/free view box.  What kind of adaptor can I buy so I can have the hard drive and my apple tv device plugged into the same HDMI PORT?

    I have one HDMI port on my television that is currently used for my hard drive/free view box.  What kind of adaptor can I buy so I can have the hard drive and my apple tv device plugged into the same HDMI PORT? Is it a switch or a splitter?  And where is it best to buy one?  Thanks!

    Welcome to the Apple Community.
    You need an HDMI switch.

Maybe you are looking for

  • Back to Back vPC - Why is it not possible?

    Good Evening! I'm studying for CCDP and am currently sitting on page 271 for those of you that have the official book (642-874).  Similar topology to book here. If I understand correctly, in an Active/Active FEX design two Cisco Nexus 5000s plug into

  • How can I print a week from my calendar

    Hello, We all use now calendar in I cloud to make all our appointments. But to have the overview we want to print once a week our week schedule. How can we do this??? Thanks for your help.

  • Droid X: WORST phone EVER

    Worst phone EVER.  DO NOT BUY. * Constantly reboots * Constantly drops data connection * Totally ignores third-party email for about an hour on its own which is absolutely CRITICAL. * Will only get email immediately when its powered down, then up. *

  • Can we execute an idoc script from a custom service?

    Is it possible to execute an idoc script while executing a custom service? -Pratap

  • Adobe won't charge my credit card and shuts down my Cloud today

    Hi, I've updated my payment info several times this week, beacuse my Cloud apps give me warnings that I haven't payed and my subscription is about to expire. The card info is there, the card account has enough funds to process the transaction, yet to