Custom cell for Objective C - objective-c

I am new to coding in Objective C. Originally I was bringing in a string of data into my tableView and I was having a really tough time with spacing out everything row by row. So I just need some guidance as to whether or not I am headed in the right direction. I have decided to make a custom cell with multiple views within it. So if I feed each piece of the data separately into each view, would that do the trick of having each row align with one another? Do I need to have anything else within each view i.e. labels? Also how should I think about this code logically? I'm not sure how to send data to each separate view?

As you are new to Obj-C coding, go through this sample app.
This sample code demonstrates getting data from server in xml format, parsing the xml response, and displaying in a table, it also uses custom cell to display parsed data.

Related

Wondering if it's possible to create an XLSX with freezed first row?

I am trying to use SheetJS to create a simple Excel file from our Angular (17?) web app.
It is working very well but, now I got greedy and I want to fix the first row ("freeze row" in Excel which is a very popular method of freezing the headers row when scrolling the actual data up and down).
Is it possible?

Creating Diagram from Excel Using VB

Sorry I can't embed images, I have the links instead (... I can only post two links. I have removed the http:// substring from some of the links).
I am looking to take an .csv file (really, any file, as I am generating this myself), and create a Visio (2010) diagram out of it. I have successfully imported the excel sheet to Visio, and can create some rough diagrams, but they are not enough. This is what I'm trying to create. Here are the following tactics I have tried, I prefer the VB method, but whatever works works:
Data Graphics: This is the closest I've gotten to a solution. Basically you create shapes and you can put data in it. Problem is, the style of display available are limited, as we can see here (imgur.com/clTLcxk). After importing the excel sheet, all I had to do was drag and drop to create these shapes. The closest I have gotten is here. However, I really need the outside box (or container, for aesthetic reasons). (Some information here [support.office.com/en-us/article/Enhance-your-data-with-data-graphics-45af64a4-1dcb-4463-9a7e-67709786181c])
VB: I have been using this (msdn.microsoft.com/en-us/library/office/ff959245%28v=office.14%29.aspx). I have ran some of the example code, but I am really lost. I have run some of the example code but the only one I have really gotten to work are useless to me. Also, I don't see any API methods that actually add data to these diagrams!
So how is this done?
I would approach this problem by first defining or finding Visio masters that would the data I'm drawing to the page. In your case it looks like you'd want a master for your Foo items, and one for your Bar items.
So then you'd step through your Bars, then within each Bar you'd have one or more Foos. For each Foo, you would drop that master out, and set the text of the shape to what you want in the blue Foo section (maybe a grouped sub-shape for the Foo master), and then text in the white body.
When stepping through all the Bars, you'd obviously have to drop out a Bar shape and position/size it to contain all the Foos.

Faster approach to load data in NSTableView from a file?

In my application I am reading data from a text file and displaying it in NSTableView. There are 6 columns in my tableview. My problem is when the records in file are more it takes too long to read and display the data. e.g. It takes around 1 min to read and display 70,000 records from the file. I am using NSArrayController to update my NSTableView. Please suggest some solution to make my application faster. Should I read and display only that much data that is visible to the user (like in iphone but i dont know how is it done OSX?) and update my view on scrolling?
Thanks & Regards
Abhijeet
I strongly recommend you use the CoreData framework. Reading in the entire array with 70,000 records is nuts.
Start here: Core Data Programming Guide.

Populating table cells from a external list file in Objective C

If I were to use the split table view controller (for iPad) rather than hard code the contents of the table to populate the view, can I import the information (including pictures) to populate the cells? Leading to an easy way to update the information held in the table?
thanks.
Look at Apple code samples, like this one, especially the ones regarding UITableViewDataSource to understand how to fill a table.
A simple property list file should fit your needs. They are easy to create/edit with Xcode and easy to read with code, like [NSArray arrayWithContentsOfFile:path]...

Dynamic Data in an RDLC Report Footer across Multiple Pages

I created an RDLC report (based on a stored procedure) that contains lists. I need to display data from one of those lists in the report footer across every page. However this data only shows in a list on the first page, so that is the only page on which it shows in the footer also. I’ve researched this but haven’t found much information. Does anyone have a solution for this?
Something you can try, don't know for sure if it will work. Create a formula that returns the data you want to display, then put the formula field on a text area in the footer.
I ended up placing a textbox in the second page area, setting the text color to white and sending it to the back. If I hid the textbox (or table - I tried that too), the footer object could not reference it. So, setting the text color to white and placing it behind another object worked. It seems like this is a kludgy way to do a simple report operation but is apparently necessary.