iOS Charts

https://github.com/danielgindi/ios-charts/blob/master/README.md

http://www.appcoda.com/ios-charts-api-tutorial/
I’m going to add some graphing to the app soon.

Haven’t tried this yet but it looks good.

DynamicGraphView
Core Plot

http://www.raywenderlich.com/13269/how-to-draw-graphs-with-core-plot-part-1

http://www.raywenderlich.com/13271/how-to-draw-graphs-with-core-plot-part-2

I had a couple of difficulties using it in a newer version of Xcode so added my findings here.
iOS Plot

https://github.com/honcheng/iOSPlot
iOS Charts

https://github.com/egymgmbh/ios-charts

Collection Operators

Reading Chapter 7 – KVC/KVO of Cocoa Programming

https://www.bignerdranch.com/we-write/cocoa-programming/

And learning about Array Operators like

  • avg
  • count
  • max
  • min
  • sum

These could come in handy.

NSNumber *theAverages
theAverage = [employees valueForKey:@"avg.expectedRaise"];

They also have a forum (http://forums.bignerdranch.com)

Other Articles

http://nshipster.com/kvc-collection-operators/

Mac OS X – Dev

I bought:

https://www.bignerdranch.com/we-write/cocoa-programming/

I’ve got version 3, 4 & 5.

Working through 4 now as it’s ObjC.

I’m going to document things I’ve had to look up.

Chapter 2

Probably look back and say why didn’t I spot this but it should help it not happing again:

Unknown type name ‘NSTextField’

#import <Cocoa/Cocoa.h> 

Could have just added a .pch file

Project Settings
Under the ‘Apple LLVM 6.0 – Language’ section in the ‘Prefix Header’ I added “<PROJECTNAME>/<PROJECTNAME>-Prefix.pch”

hRandom-Prefix.pch

#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#endif

.

Adding A Settings Bundle

I’d like to add a Settings section to my app to show Licenses and other info.

Maybe put the Options section there too.

https://codehappily.wordpress.com/2014/03/18/ios-how-to-create-an-ios-settings-entry-for-your-app-using-settings-bundle/

http://stackoverflow.com/questions/6428353/best-way-to-add-license-section-to-ios-settings-bundle/6453507#6453507

Run a perl script:

perl <scriptname.pl>

Mac Dev Weekly

So I’ve started some Mac Dev and I’m looking for useful sites but there aren’t many out there.

Ray Wenderlich has a few tuts.

There is the Big Nerd Ranch book.
Website
http://macdevweekly.com/

Previous Issues
http://macdevweekly.com/issues

RSS Feed
http://macdevweekly.com/issues.rss

FMDB

Useful ways to get data out of FMDB.

Count

NSUInteger count = [db intForQuery:@"SELECT COUNT(field) FROM table_name"];

Make sure to include the FMDatabaseAdditions.h header file to use intForQuery:

Max

NSUInteger max = [db intForQuery:@"SELECT MAX(field) FROM table_name"];

Min

NSUInteger min = [db intForQuery:@"SELECT MIN(field) FROM table_name"];

Average

NSUInteger average = [db intForQuery:@"SELECT AVG(field) FROM table_name"];

Sum (Σ)

NSUInteger sum = [db intForQuery:@"SELECT SUM(field) FROM table_name"];

Total

NSUInteger total = [db intForQuery:@"SELECT TOTAL(field) FROM table_name"];

https://www.sqlite.org/lang_aggfunc.html

Done button on NumPad

I’ve been researching adding a done button to a NumPad and keep getting the same error:

Can't find keyplane that supports type 4 for keyboard iPhone-PortraitChoco-NumberPad; using 2705787216_PortraitChoco_iPhone-Simple-Pad_Default

And it seems to take a lot of code.

Another option would be to add a toolbar above the keyboard.

Not sure how well this will work with TPKeyboardAvoiding but let’s see, and it does!

Follow

Get every new post delivered to your Inbox.