Creating an iTunes Style NSOutlineView

Hey There,
i'm trying to create a menu similar to the one you would see in itunes, an NSOutlineView where the children have icons and the roots have a different font, etc.
1. 1st question is if anyone has seen a full tutorial on creating this, that would be a big help but in the absence of that i have a more detailed question
2. I have been able to create a subclass of NSTextFieldCell that draws the textfield and an icon, and i was able to create an xml file that is loaded and populates the outlineview with certain variables (like the ability for a node to be selected, expanded, etc) One of the things i would like to do is similar to iTunes 'LIBRARY' node. It is always expanded and cannot be collapsed. So i created some variables and put them into the XML. here is some code from my project:
*- (void)outlineView:(NSOutlineView *)anOutlineView willDisplayCell:(NSCell *)cell forTableColumn:(NSTableColumn *)tableColumn item:(id)item*
* NSTreeNode *treeNode = item;*
* OutlineItem *nodeData = [treeNode representedObject];*
*if ((tableColumn == nil) || [[tableColumn identifier] isEqualToString:@"titleColumn"]) { *
*// Make sure the image and text cell has an image. If not, lazily fill in a random image*
*if (nodeData.iconImage == nil) {*
*nodeData.iconImage = [NSImage imageNamed:@"2.icns"];*
*// We know that the cell at this column is our image and text cell, so grab it*
*ImageAndTextCell *imageAndTextCell = (ImageAndTextCell )cell;
*// Set the image here since the value returned from outlineView:objectValueForTableColumn:... didn't specify the image part...*
*[imageAndTextCell setImage:nodeData.iconImage];*
* // Here's one - we need to make sure an "Expanded" column has been expanded, i know.*
* if (nodeData.isExpanded && ![anOutlineView isItemExpanded:item])*
* [anOutlineView expandItem:item];*
* [anOutlineView reloadItem:item reloadChildren:YES];*
* [anOutlineView setNeedsDisplay:YES];*
* //[anOutlineView reloadData];*
So here is the problem: this code will force anything in the XML file marked as "isExpanded" to expand on the first run, but for some reason, only the first 4 nodes get drawn, the rest of the nodes are there, but not visible until you click on them. Any thoughts on this?
PS - sorry for the weird formatting
Message was edited by: Joshua Chudnovsky
Message was edited by: Joshua Chudnovsky

I think you have to log in using your account, enter the codes etc. for the gift card, and then the credit amount appears and she will be able to download the music. I did the same for my stepson, who is 16. An employee at the Apple store told me to do this and said when he is old enough to get his own credit card he can set up an account and the music he already has will play. Yes, I think that a credit card is 100% necessary and I presume that legally it forces you to be respponsible, as a parent, for your child's downloads as they cannot have a credit card under 18, at least under English law, and presumably, in other countries such as the USA, it is the same.

Similar Messages

  • In Pages (5.5.1) can I create multiple Paragraph Styles within one paragraph?

    In Pages (5.5.1) can I create multiple Paragraph Styles within one paragraph. 
    I need to make a table of contents for my Mater's Thesis and want to use the automatic table of contents feature.  I want the first sentence of a paragraph to have a different paragraph setting than the rest of the paragraph.  Is this possible?
    Thanks!

    Nice of you to be doing this for your Mother's Thesis.
    There are several issues here:
    1. A Paragraph Style is what it says, the style for the paragraph
    2. You can format text within a paragraph by applying a Character Style
    3. Pages 5.5.1 lets you apply formatting to overall text for the T.O.C. but not parts of it and you can not retain that formatting as a Paragraph style
    So in answer to your question, no.
    You will need to create the T.O.C. manually and unfortunately as Pages 5.5.1 can't create bookmarks (just one of over 100 missing features) you will be unable to link the T.O.C. to the referred pages in the list.
    Peter
    Apple's marketing slogan:
    Pages 5.5.1 - Can't Do That!

  • Itunes on my G4 powerbook wont recognise my library created on itunes 11

    I want to import my itunes library from my hardrive to my G4 powerbook.
    Power book running OS X 10.5.8 and Itunes 10.6.3
    I have tried to import my Itunes library created on itunes 11.1.3 but the poser book says it cant open the library because it was created on a later version of itunes.
    Is there some way of updating the power book of changin my library so I can import it.

    If you have an iTunes Music folder, import that. Whichever folder they're in can be located by finding the m4a files and navigating up the folder structure.
    (92695)

  • Problems creating separate iTunes account from iPhone

    My wife and I have iPhones. I'm a MobileMe account user and my wife's email address is another email address within my MM account (I'm [email protected] and she is [email protected]). If we try to access iTunes with her existing email address it says the ID doesn't exist but when we try to set up a new user account in iTunes through her iPhone we're getting the message that the account is on an existing MobileMe account so won't set up new account.
    How do we set up 2 iPhones to work with these email ID's?

    If your wife's MobileMe address is an alias address under your MobileMe account, this is likely the problem when trying to create a new iTunes account with an alias email address, which is under the primary MobileMe account/address.
    If both iPhones are synced with the same iTunes library at the present time with all 3rd party apps in your iTunes library and on each iPhone purchased/downloaded with your existing iTunes account, why do you want to create another iTunes account? All 3rd party apps and video purchased/downloaded from the iTunes store include DRM protection which is tied to the iTunes account used to purchase/download the content.

  • Create a list style with unique space after the last list item?

    I should start by saying that I'm a web designer and therefore extremely used to using CSS for type setting to the point that I now become frustrated when going back to the print world
    So here's what I'm trying to achieve:
    - I want to create a list style for bullet lists
    - I want there to be 3pt space after and space before paragraph breaks
    - I want there to be 9pt space after the entire list (or last list item)
    I can't for the life of me figure out how to do this short of overriding the space after amount on the last item each time I use my style.

    Hi supportneeder
    Welcome to the forum.
    Try this link:
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=179&mforum=iworktips ntrick
    Pay attention to how +"styles work by example"+. Form up the list levels the way you want them and then select them to make the list style.
    Personally I can't help remarking on the obtuse behavior of programmers that they manufactured all the problems on the internet and only now, more than a decade later, patch together "solutions" they struggle to implement due to the legacy of all the awful standards we never needed to have in the first place.
    Peter
    btw The last list item is always a problem in typesetting. Usually you deal with it by having a particular style for that or the paragraph afte,r all of which can take multiple forms.

  • How do I create different iTunes library for different Iphones in a family

    how do I create different iTunes library and Syncing Iphone separately using same desktop PC?

    The best way to set it up in my opinion is to have each user have there own user account on the computer. This way information is stored separately and easier to locate and navigate through.
    If you want to have it this way but would rather go through and log into different iTunes libraries on the same user account follow this article. If you do it this, it would work the same you just want to make sure the correct library is open before syncing the device.
    http://support.apple.com/kb/HT1589
    Hope this helps!!

  • Can I create an iTunes account for someone else?

    I just bought an ipod for my parents, who are not exactly techno-savy. I was wondering if it would be possible to create an iTunes account on my computer, get their music collection started, and then mail the ipod to them with all the account info so they can just log in and go. Is this possible?

    Yes.

  • I created one iTunes account on one pc and another iTunes account on my current pc. How do I merge the two accounts?

    I created one iTunes account on one pc and another iTunes account on my current pc. How do I merge the two accounts?

    Csound1 wrote:
    iMatch works by matching or uploading the music in your iTunes account, it doesn't matter where the music came from as long as it now in your account, but if you purchased it with a different account you will need to be logged in
    No.
    As long as you computer is authorized for that iTunes account, the songs will work with iTunes Match. The user does not need to be logged in on that computer.
    Husband's computer and husband's iTunes account signed in.
    Songs from wife's iTunes account on computer and computer authorized for wife's account. Songs from both will work with iTunes Match.

  • When i first created my itunes account it selected the local country i lived in, now i have changed countries and it does allow me to buy any apps as the credit card is not valid in that country. what do i do?

    When i first created my itunes account it selected the local country i lived in, now i have changed countries and it does allow me to buy any apps as the credit card is not valid in that country. what do i do?

    You will need to sign into your account using the iTunes app on your Mac or PC and change the region/country for your account. If you do not have a bank card for the new country, you should be able to make purchases with iTunes Gift Cards if they are available in the new country.

  • I have accidently created two itunes accounts! and i want to combine them. I've tried to log into one account to change the email address, so maybe the accounts would link, but i cannot log in. any help?

    SO..I have accidently created two itunes accounts. I need to some how combine them. any ideas???

    Sorry... can't be done. Apple says no when it comes to merging accounts.
    Read here > Frequently Asked Questions About Apple ID

  • I created two iTunes libraries on my mac mini and would like to merge them into one library. What is the easiest way to do this?

    I created two iTunes libraries on my mac mini back in the day. I would like to consolidate them into one iTunes library. What is the easiest method to do this? I do use i-Match to access all my music from  iCloud, if that makes any difference.  Thanks. Mark

    Thanks for the reply. When I created the 2 libraries years ago I would hold down the options key and had 2 library names to choose from. Now it just shows a lot of files when I do that, With over 7,000 songs I think I will just look for the few songs from the original library I used to use that still interest me, if they don't show up in my default current library. Thought there would be any easy was to integrate all my music files into one library. I am definitely not going to spend days manually doing this, but thanks again.

  • How do I sync my music from my iphone to my mac when I have created a itunes library on my old computer?

    How do I sync my music from my iphone to my mac when I have created a itunes library on my old Hewitt packard computer?
    Thought by connecting my phone to computer it would automatically duplicate. Only seems to work with a small amount of music which I downloaded through my mac
    Im no expert with computers so need some step by step advice
    I have over 1000 songs on my iphone and want to back it up on my mac itunes
    Want to upgrade my iphone and dont want to loose my music and ideally want to import it onto my new iphone
    Need help?

    Your i-device was not designed for unique storage of your media. It is not a backup device and media transfer was planned with you maintaining a master copy of your media on a computer which is itself properly backed up against loss.  To use a device with a new computer you transfer the content from the old computer (or its backup) directly to the new computer, not the device to the new computer. Syncing is one way, computer to device, updating the device content to the content on the computer, not updating or restoring content on a computer. The exception is iTunes Store purchases which can be transferred to a computer.
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer - http://support.apple.com/kb/HT1848 - only purchases from iTunes Store
    For transferring other items from an i-device to a computer you will have to use third party commercial software.  See this document by turingtest2: Recovering your iTunes library from your iPod or iOS device - https://discussions.apple.com/docs/DOC-3991

  • How do I create two iTunes accounts under the same email address?

    I've got my account duplicated -and charged for apps I already own- by using my email address as login instead of apple ID, but I've been told it's my fault so…
    I'm trying to figure out
    *How do I do to create two iTunes accounts under the same email and having different IDs?*
    I mean, two accounts with different purchase history. It doesn't matter if billing address, or credit card are the same (or different) because none of them flag apps as "purchased"
    I tried today from iTunes, but it tells me the email is taken.
    Do you know any way a user can do it from our end? (website, iTunes, iPhone)
    If you've got charged by apps twice, please don't say it here. I don't want my post being deleted again. Thanks.

    Beavis2084:
    Expired .mac accounts HAVE NO EMAIL. You own the id (which iTunes requests to be spelled in form of an email)
    Also, FREE .mac accounts have no email either.
    What you see in the screenshots is what I'm saying:
    There's been a change in the way iTunes wants you to login. The iTunes reps see at their end what you see at the top of the window, which probably is the "migration" of the new login: Old login system, using ID (in form of email for iTunes)
    BELOW you clearly see where says "ID" and both have the email as login.
    (again, that .mac email doesn't exist and NEVER DID)
    That's the NEW login: your EMAIL.
    I'm sorry I didn't explain it better the first time. I wrote about this so many times to iTunes support reps to prevent them to "read" what their system says that I gave it for settled. (not to mention that my first post was removed because "it lacks of interest for others"
    I own an apple ID, given away with the purchase of a new computer (nothing small by the way) and when that happens (and never subscribe for a paid membership), you use ANOTHER email to be related to your account.
    Now that AGAIN apple asks you for using your EMAIL (non-apple in our case) instead of your ID (which you can't use or you will never get a notification again!) the system believes there are two accounts.
    It's like your credit card bank changing the address for sending the payments. You are STILL paying, but getting a higher rate because their CHANGED the address and the check never arrives.
    In this case, signing in with a different string, makes the system believe there are two accounts. And that probably is under the policy which probably states purchases are not charged twice for SAME ID, and SAME iPhone… and you used a different ID, so it must be fair (sarcasm). Who told you to do so? Bad boy!

  • How do i create an itunes account that can only download free apps

    how do i create an itunes account that can only download free apps

    Follow the instructions here > Create an iTunes App Store account without a credit card

  • Hi, how can I create an iTunes account without a credit card? Thanks

    Hi, how can I create an iTunes account without a credit card? Thanks

    Welcome to Apple Support Communities
    Read > http://support.apple.com/kb/ht2534

Maybe you are looking for

  • Sign into icloud box won't go away

    As soon as I power on my ipad mini, the sign into iCloud dialogue box pops up.  I type in the password, but it pops up with the box again as if I didn't type anything in.   I've tried holding the home and power buttons simultaneously to restart it, t

  • Photo Quality Question

    Right now I am taking pictures at 2592x1994 resolution and am wondering about developing. When I upload these pictures to the internet, facebook to be exact, the image looks grainy. I assume this is because compressing so many pixels into a smaller i

  • Oracle DMP file import Error

    Dear all, i have file of file.dmp and want to import to my database on oracle, here i have user but when i am importing my file i get the bellow error imp file=file.dat  touser=user_one log=logfile.LOG data_only=Y no i get the eror of : IMP-00037: Ch

  • Divx file in idvd

    I was able to use the latest beta divx for Tiger and watch a divx file in QT. I also put through idvd and burned a dvd. Problem is the dvd will not work in my TV's dvd player(s), but works fine on my G5's dvd player. What do I do next ? Thanks for an

  • AVCHD log and transfer - Only from a camera?

    I am thinking about upgrading my camera to a AVCHD camera.  I saw on a post that you can only log and transfer AVCHD footage from the camera and not just the card attached via card reader.  Can someone shed some light on this.  I want to be able to s