Adding a table in an iBook popover - popover

I'm trying to add a table (i.e. a small grid) into a popover in an iBook I am trying to author.
Problem is: I have no idea how to do it. All I seem to be able to add are images and text boxes. The table is grayed out.
I tried creating a table in Numbers and cutting and pasting it in - but that did not work.
Any ideas?
Can I drop down to HTML to do this?
thanks

The only way I have found to do it is
Create a page at the end of the book
Create the table
Take a screen grab of the table
Paste the image into the popover
This does have the (small) advantage of having a single place with all the tables.

Related

Cells don't resize when user resizes NSTableViews columns?

I have found that the text in a table view doesn't grow when the user resizes the column. (Or for that matter shrink if he shrinks the column, because the truncation ellipses then vanish.) Having gathered that this is something to do with constraints, my solution has been to uncheck Use Auto Layout (in the xib's file inspector). Not a big deal, but it comes just when I was beginning to think I might have mastered Autolayout.
Is that really the only way to do this?
The table is view-based, and gets its data from Core Data via an array controller. The text is displayed in an NSTextField.
It is as you have found out yourself.
If you want to know/learn more about NSTableview-behavior search for "TableViewVariableRowHeights" and "TableViewLinks" in Apples documentation and download the samples.
This question appears to be answered in:
How to Expand NSTableCellView Width When Resizing Column in NSTableView
summary: add horizontal constraints to the table view cell
see the link for screenshots

Where is the ipad table view row insert icon located

I've been searching the .png files on my Mac looking for the iPad Table View row insert icon (a white plus sign on a green background surrounded by a gray circle). I'd like to use it in a custom table view that inserts records. Is it possible to find that particular icon from Apple on my computer? Is the fact that it's not easy to find a hint that perhaps I shouldn't use it?
Thanks
You're looking for the UITableViewCellEditingStyleInsert button:

Save and load text font in textview. (Xcode)

I was wondering if any one knew how to save an load fonts on a textview. The app lets the user select the font for the text view but when they switch views and come back it is gone. Does any one know how to save that and then load it. Thanks so much.
Also if any one know how to save text color that would due great also.
Thanks so much!!
What you have to do is to give all the textViews a specific tag values and on navigation before view willDisappear you have to store all the values to array and on navigating back to the view on viewWillAppear fill all the textViews using the tag values.

Create two rows in NSTableView in cocoa

I have a NSTableView with one column. As we know in cocoa, Table is column base. I want to create a login screen in cocoa with the help of table view in which there are two rows, one for username and another for password. I want to know how I use custom table in cocoa to create two rows.
Please help me out. Any help is appreciated.
Thanks
1) Read the documentation and search Google for any one of thousands of examples for implementing the NSTableViewDataSource protocol. Post back with specific questions if you run into problems.
2) Reconsider why you chose NSTableView rather than standard textfields and labels or NSForm or even NSMatrix. Using an NSTableView in this way is not only strange but its implementation will be clunky and weird.
Let me back that last point up a bit. Dialogs - modal or not - usually only have a few fields. That's what fields and labels are for. If you find yourself dealing with a lot of same-type input fields, NSForm is a better fit but has a few gotcha's in your case. An NSTableView shows tables and a single column of two or three individually-labeled fields is not really a table. Just use text field and password field, slap labels on them, and be done with it. :-)

Using a table to add objects/images to a view

First off this is Xcode 4 iOS 5.0. Here is what I want to do. I have one view, we will call it view1, which has a button and when that button is pressed a different view with a table appears called tableView. I have multiple images I want to be in this table and when the image is selected, it would appear in view1. I have already researched all of this and just can not find the right material. The button and table are already working together and I can add the objects to the table, but getting those objects that I select to appear on view1 is what I am not understanding. I can not get the two nib files to work together, or Im going at it wrong.
Second question, guess this is similar, view1 displays an image that is selected from the photo library BUT is there a way to open the photo library, select the photo, and have it appear in a DIFFERENT nib view? Again this is getting the NIBs to work together. I would appreciate all the help I can get. (photo library and selection of photo already works so that code is not needed). Thank you for the help!
I have used this example to get what you have described in the above question. But with some tweak in the delegate methods and hop you will get some direction for your problems, too.
Good Luck!
Happy Codding! :)
And need any help just ask for it, don't hesitate.
It is possible from delegates in other class.

Resources