<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Oliver Wolfson</title>
	<atom:link href="http://oliverwolfson.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://oliverwolfson.com</link>
	<description>Stuff that I didn&#039;t want to forget</description>
	<lastBuildDate>Thu, 09 May 2013 07:18:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Gradients v2.1 is available</title>
		<link>http://oliverwolfson.com/gradients-2-1/</link>
		<comments>http://oliverwolfson.com/gradients-2-1/#comments</comments>
		<pubDate>Thu, 25 Apr 2013 17:10:48 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[apps]]></category>

		<guid isPermaLink="false">http://oliverwolfson.com/?p=3043</guid>
		<description><![CDATA[Please download my new iOS app release, Gradients v2.1.]]></description>
				<content:encoded><![CDATA[<p>Please download my new iOS app release, <a href="https://itunes.apple.com/us/app/gradients/id498181349?ls=1&#038;mt=8">Gradients v2.1.</a></p>
<p><a href="https://itunes.apple.com/us/app/gradients/id498181349?ls=1&#038;mt=8"></p>
<p><img src="http://oliverwolfson.com/wp-content/uploads/2013/04/flyerImage03-862x1024.jpg" alt="flyerImage03" width="862" height="1024" class="aligncenter size-large wp-image-3081" /></p>
<p></a></p>
<p><a href="https://itunes.apple.com/us/app/gradients/id498181349?ls=1&#038;mt=8" target="_blank" style="background-color:#f05134 !important;" class="button ">Gradients On The App Store</a></p>
]]></content:encoded>
			<wfw:commentRss>http://oliverwolfson.com/gradients-2-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XCode breakpoint tip</title>
		<link>http://oliverwolfson.com/xcode-breakpoint-tip/</link>
		<comments>http://oliverwolfson.com/xcode-breakpoint-tip/#comments</comments>
		<pubDate>Sat, 09 Mar 2013 02:11:50 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[break]]></category>
		<category><![CDATA[breakpoints]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[objective]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[points]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://oliverwolfson.com/?p=3112</guid>
		<description><![CDATA[Use breakpoints to replace NSLog statements while debugging your code.]]></description>
				<content:encoded><![CDATA[<p>Use breakpoints to replace NSLog statements while debugging your code.</p>
<p><img src="http://oliverwolfson.com/wp-content/uploads/2013/05/Screen-Shot-2013-05-09-at-9.08.49-AM.png" alt="Screen Shot 2013-05-09 at 9.08.49 AM" width="469" height="221" class="aligncenter size-full wp-image-3116" /></p>
<p>Steps:</p>
<p>1. Add a break point.<br />
2. Hold option + command and click the break point to edit it.<br />
3. Tap the add action button.<br />
3. Add an action or expression like below.</p>
<p>LLDB (debugger) action</p>
<pre class="brush: cpp; collapse: false; light: false; title: + code, click to expand.; toolbar: true; notranslate">
po myVar
</pre>
<p>Expression</p>
<pre class="brush: cpp; collapse: false; light: false; title: + code, click to expand.; toolbar: true; notranslate">
expr (void)NSLog(@&quot;myVar = %d&quot;, myVar)
</pre>
<p>Select &#8220;Automatically continue after evaluating&#8221; to continue without stopping the code. </p>
<p>Advantages:</p>
<p>1. Easier to manage: e.g. you can view all the breakpoint and more in the breakpoint navigator (second button from the right in the navigator pane).</p>
<p>2. You can edit the actions or expressions, or add breakpoints while the code is running.</p>
<p>Source: <a href="https://developer.apple.com/videos/wwdc/2012/">2012 WWDC video</a>: Debugging in XCode. Much more information in this video.</p>
]]></content:encoded>
			<wfw:commentRss>http://oliverwolfson.com/xcode-breakpoint-tip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic Apple Script</title>
		<link>http://oliverwolfson.com/basic-apple-script/</link>
		<comments>http://oliverwolfson.com/basic-apple-script/#comments</comments>
		<pubDate>Wed, 09 Jan 2013 03:49:39 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://oliverwolfson.com/?p=3136</guid>
		<description><![CDATA[Check out this tutorial to learn some AppleScript.]]></description>
				<content:encoded><![CDATA[<p>On your desktop, create a folder called test. Inside the test folder, create a folder called tester. Now open a finder window and navigate to a random location, like home, but not one of these folders.</p>
<p>Now open the AppleScript Editor and paste the code below into the AppleScript Editor input window (the top pane). </p>
<pre class="brush: plain; collapse: false; light: false; title: + code, click to expand.; toolbar: true; notranslate">
tell application &quot;Finder&quot; to set the target of the front Finder window to folder &quot;tester&quot; of folder &quot;test&quot; of desktop
</pre>
<p>The finder will automatically open the tester folder in the foremost open window. </p>
<p>A complete tutorial here:</p>
<p><a href="http://www.macosxautomation.com/applescript/firsttutorial/index.html ">http://www.macosxautomation.com/applescript/firsttutorial/index.html<br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://oliverwolfson.com/basic-apple-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Opening a newer version Maya file in an older version of Maya</title>
		<link>http://oliverwolfson.com/opening-newer-version-maya-file/</link>
		<comments>http://oliverwolfson.com/opening-newer-version-maya-file/#comments</comments>
		<pubDate>Wed, 09 Jan 2013 02:51:20 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[animation]]></category>
		<category><![CDATA[Maya]]></category>
		<category><![CDATA[ASCII]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[opening]]></category>

		<guid isPermaLink="false">http://oliverwolfson.com/?p=3029</guid>
		<description><![CDATA[A common issue when using AW Maya is trying to open a file that was created in a newer version of Maya than your installed version. Maya files are not backwards compatible, in my experience. There are two ways that I know of to deal with this. One is to simply select &#8220;Ignore Version&#8221; in [...]]]></description>
				<content:encoded><![CDATA[<p>A common issue when using AW Maya is trying to open a file that was created in a newer version of Maya than your installed version. Maya files are not backwards compatible, in my experience. There are two ways that I know of to deal with this. One is to simply select &#8220;Ignore Version&#8221; in the File->Open dialog. I tried this today and it failed, Maya crashed. Another option, which did work for me, is to save the newer version file as an ASCII file (file.ma), and edit the file&#8217;s data manually. This is very simple to do. You will need to have access to the newer version of Maya to accomplish this though, or have your collaborator deliver an ASCII version of the file. Once you have the ASCII file, do the following things: </p>
<p>1) Save a dummy ASCII file from your older version of Maya (ex: dummyFile.ma) so that you can see the older format file&#8217;s data. For safety, make a copy of your &#8220;Newer Version&#8221; file, as you will be editing the code directly.</p>
<p>2) open both files side by side examine the &#8220;headers&#8221;, the top portion of each file. You will note a similarity in the first 10 &#8211; 15 lines of data. I am using a Mac, so examining the files, the last line I see in what I would call header information is: <code>fileInfo "osv" "Mac OS X 10.8.2";</code>. After this there is a &#8220;createNode&#8221; Maya command, that I don&#8217;t want to disturb. It&#8217;s slightly different from one file to another and one version to another, but only slightly. You will have no trouble figuring out where to copy and where to paste. Copy this header data from the older version file and paste to the newer version file, overwriting the relevant code.</p>
<p>2) The file should now open in the older version of Maya. Of course any features of the newer version of Maya that are not available in the older version of Maya will not work in this opened scene (actually I&#8217;m not certain what happens in this scenario).</p>
<p>There may be other methods, but I am not aware.</p>
]]></content:encoded>
			<wfw:commentRss>http://oliverwolfson.com/opening-newer-version-maya-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom Popover Class for iPad development</title>
		<link>http://oliverwolfson.com/custom-popover-class-for-ipad-development/</link>
		<comments>http://oliverwolfson.com/custom-popover-class-for-ipad-development/#comments</comments>
		<pubDate>Mon, 07 Jan 2013 06:44:16 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[Popover]]></category>
		<category><![CDATA[subclass]]></category>

		<guid isPermaLink="false">http://oliverwolfson.com/?p=3023</guid>
		<description><![CDATA[From Scianski Blog Code: https://github.com/Scianski/KSCustomUIPopover Overview: http://www.scianski.com/customizing-uipopover-with-uipopoverbackgroundview/]]></description>
				<content:encoded><![CDATA[<p>From  <a href="http://www.scianski.com/">Scianski Blog</a></p>
<p><strong>Code: </strong><a href="https://github.com/Scianski/KSCustomUIPopover">https://github.com/Scianski/KSCustomUIPopover</a></p>
<p><strong>Overview: </strong><a href="http://www.scianski.com/customizing-uipopover-with-uipopoverbackgroundview/http://">http://www.scianski.com/customizing-uipopover-with-uipopoverbackgroundview/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://oliverwolfson.com/custom-popover-class-for-ipad-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magic Prefs</title>
		<link>http://oliverwolfson.com/magic-prefs/</link>
		<comments>http://oliverwolfson.com/magic-prefs/#comments</comments>
		<pubDate>Fri, 28 Dec 2012 05:31:30 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[carpal]]></category>
		<category><![CDATA[Magic]]></category>
		<category><![CDATA[Magic Mouse]]></category>
		<category><![CDATA[mouse]]></category>
		<category><![CDATA[pad]]></category>
		<category><![CDATA[Prefs]]></category>
		<category><![CDATA[track]]></category>
		<category><![CDATA[tunnel]]></category>

		<guid isPermaLink="false">http://oliverwolfson.com/?p=3018</guid>
		<description><![CDATA[You&#8217;re not really using your Mac Magic Mouse until you get MagicPrefs. Here are my current preferences, to combat carpal tunnel (hand fatigue). Note the Taps section. Set up this way, right and left clicks can be accessed via tap, saving the strain of a click. The Magic Prefs app also includes settings for your [...]]]></description>
				<content:encoded><![CDATA[<p>You&#8217;re not really using your Mac Magic Mouse until you get <a href="http://magicprefs.com/">MagicPrefs</a>. </p>
<p>Here are my current preferences, to combat carpal tunnel (hand fatigue). Note the Taps section. Set up this way, right and left clicks can be accessed via tap, saving the strain of a click. </p>
<p><img src="http://oliverwolfson.com/wp-content/uploads/2012/12/Screen-Shot-2012-12-28-at-12.20.03-PM-600x541.png" alt="" title="Screen Shot 2012-12-28 at 12.20.03 PM" width="600" height="541" class="alignright size-medium wp-image-3019" /></p>
<p>The Magic Prefs app also includes settings for your track pads. </p>
]]></content:encoded>
			<wfw:commentRss>http://oliverwolfson.com/magic-prefs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iOS Core data tutorial, save and fetch an array.</title>
		<link>http://oliverwolfson.com/core-data-tutorial-save-and-fetch-an-array-to-core-data/</link>
		<comments>http://oliverwolfson.com/core-data-tutorial-save-and-fetch-an-array-to-core-data/#comments</comments>
		<pubDate>Thu, 20 Dec 2012 06:26:32 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[apps]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[core]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://oliverwolfson.com/?p=2878</guid>
		<description><![CDATA[1. Open up Xcode and create an empty iOS application (file->new->project, choose the Empty Application template under the iOS->Application section). Click next. Name your project CoreDataSaveArray (though this long name will haunt us later). Make sure to select &#8220;Use Core Data&#8221; and use ARC too. &#160; 2. From the project navigator select the CoreDataSaveArray.xcdatamodeld. This [...]]]></description>
				<content:encoded><![CDATA[<p>1. Open up Xcode and create an empty iOS application (file->new->project, choose the Empty Application template under the iOS->Application section). Click next. Name your project CoreDataSaveArray (though this long name will haunt us later). Make sure to select &#8220;Use Core Data&#8221; and use ARC too. </p>
<p><img src="http://oliverwolfson.com/wp-content/uploads/2012/12/Screen-Shot-2012-12-20-at-1.32.11-PM2-600x3981.png" alt="" title="Screen-Shot-2012-12-20-at-1.32.11-PM2-600x398" width="600" height="398" class="alignright size-full wp-image-2943" /><br />&nbsp;</p>
<p>2. From the project navigator select the CoreDataSaveArray.xcdatamodeld. This is the file that stores entity descriptions (templates for data objects basically), which make up the data model. Clicking the file will bring up the model editor window, pictured below. Click Add Entity on the bottom left to add an entity. Rename the entity Array. In the attributes section, click the + button to add an attribute to the Array entity. Name the attribute arrayData and set it&#8217;s type to string. Create another attribute called name, also a string.</p>
<p><img src="http://oliverwolfson.com/wp-content/uploads/2012/12/Screen-Shot-2012-12-20-at-2.15.28-PM1-600x398.png" alt="" title="Screen Shot 2012-12-20 at 2.15.28 PM" width="600" height="398" class="alignright size-medium wp-image-2928" /><br />&nbsp;</p>
<p>3. Since this is project was started from an empty application, it has no xib or view controllers, so add a view controller and an xib. Click on File->New->File. Select Objective C Class from the Cocoa Touch section. Name your class CoreDataSaveArrayViewController and make sure it is a subclass of UIViewController. Select &#8220;With xib&#8221; and save the class in your project.</p>
<p>4. Now you need to set this view controller to be the root view controller. Your CoreDataSaveArrayAppDelegate.h should be edited to look like this:</p>
<pre class="brush: objc; collapse: false; light: false; title: + code, click to expand.; toolbar: true; notranslate">
#import UIKit/UIKit.h;

//add this line
#import CoreDataSaveArrayViewController.h;

//add this line
@class CoreDataSaveArrayViewController;

@interface CoreDataSaveArrayAppDelegate : UIResponder UIApplicationDelegate;

//add this line
@property (strong, nonatomic) CoreDataSaveArrayViewController *viewController;

@property (strong, nonatomic) UIWindow *window;
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;

@end
</pre>
<p>5. Add the lines indicated below to the application:didFinishLaunchingWithOptions method in the CoreDataSaveArrayAppDelegate.m.</p>
<pre class="brush: objc; collapse: false; light: false; title: + code, click to expand.; toolbar: true; notranslate">
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    // Override point for customization after application launch.
    
    //add this line
    _viewController = [[CoreDataSaveArrayViewController alloc]initWithNibName:CoreDataSaveArrayViewController bundle:nil];
    
    self.window.backgroundColor = [UIColor whiteColor];
    
    //add this line
    [self.window setRootViewController:_viewController];
    
    [self.window makeKeyAndVisible];
    return YES;
}
</pre>
<p>6. Create a user interface. Select the CoreDataSaveArrayViewController.xib and add three text fields, two buttons, a label for status output, and other labels to indicate usage as are needed to match the image below. I changed the status label&#8217;s background color to gray and the text to white. Create outlets in the CoreDataSaveArrayViewController.h for the text fields and label, as indicated in the image. Also add actions for the buttons.</p>
<p><img src="http://oliverwolfson.com/wp-content/uploads/2012/12/Screen-Shot-2012-12-20-at-2.56.09-PM1-600x276.png" alt="" title="Screen Shot 2012-12-20 at 2.56.09 PM" width="600" height="276" class="alignright size-medium wp-image-2929" /><br />&nbsp;</p>
<p>7. Import the CoreDataSaveArrayAppDelegate.h to the CoreDataSaveArrayViewController.h.</p>
<pre class="brush: objc; collapse: false; light: false; title: + code, click to expand.; toolbar: true; notranslate">
#import UIKit/UIKit;

//add this
#import CoreDataSaveArrayAppDelegate;

@interface CoreDataSaveArrayViewController : UIViewController
@property (weak, nonatomic) IBOutlet UITextField *arrayNameTextField;
@property (weak, nonatomic) IBOutlet UITextField *arrayIndexTextField;
@property (weak, nonatomic) IBOutlet UITextField *arrayDataTextField;
@property (weak, nonatomic) IBOutlet UILabel *outputLabel;
- (IBAction)saveData:(id)sender;
- (IBAction)fetchData:(id)sender;
</pre>
<p>8. Implement the saveData and fetchData methods as below:</p>
<p><strong>Save Data</strong></p>
<pre class="brush: objc; collapse: false; light: false; title: + code, click to expand.; toolbar: true; notranslate">
- (IBAction)saveData:(id)sender {
    //get instance of app delegate
    CoreDataSaveArrayAppDelegate *appDelegate = [[UIApplication sharedApplication]delegate];
    //create managed object context
    NSManagedObjectContext *context = [appDelegate managedObjectContext];
    //create a managed object, which will be an instance of your entity Array
    NSManagedObject *newArray;
    //create the instance
    newArray = [NSEntityDescription insertNewObjectForEntityForName:@&quot;Array&quot; inManagedObjectContext:context];
    /* Create a string. We are actually going to create an comma separated string of array items, and save that to core data, as array is not a supported type in core data. Then we will make an array out of the string. We can make a string out of an array to if we want to save an array, as I have done in the viewDidLoad method.*/
    [newArray setValue:_arrayDataTextField.text forKey:@&quot;arrayData&quot;];
    [newArray setValue:_arrayNameTextField.text forKey:@&quot;name&quot;];
    //clear the text fields
    _arrayNameTextField.text = @&quot;&quot;;
    _arrayDataTextField.text = @&quot;&quot;;
    //save the data
    NSError *error;
    [context save:&amp;error];
    //output message
    _outputLabel.text = @&quot;Array saved&quot;;
}

</pre>
<p><strong>Fetch Data</strong></p>
<pre class="brush: objc; collapse: false; light: false; title: + code, click to expand.; toolbar: true; notranslate">
- (IBAction)fetchData:(id)sender {
    //get instance of app delegate
    CoreDataSaveArrayAppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
    //create managed object context
    NSManagedObjectContext *context = [appDelegate managedObjectContext];
    //get entity description
    NSEntityDescription *entityDesc = [NSEntityDescription entityForName:@&quot;Array&quot; inManagedObjectContext:context];
    //create a fetch request
    NSFetchRequest *request = [[NSFetchRequest alloc]init];
    [request setEntity:entityDesc];
    //create predicate to filter request. We will be filtering our search by whatever is in the name text field.
    NSPredicate *pred  = [NSPredicate predicateWithFormat:@&quot;(name = %@)&quot;, _arrayNameTextField.text];
    [request setPredicate:pred];
    //put the results in a managed object
    NSManagedObject *matches = nil;
    NSError *error;
    NSArray *objects = [context executeFetchRequest:request error:&amp;error];
    //test the results of the search request
    if ([objects count] ==0 ) {
        _outputLabel.text = @&quot;No Array by that name found&quot;;
    } else {
        matches = objects[0];
        //get the arrayData (string) and add it to a sting object.
        NSString *arrayString = [matches valueForKey:@&quot;arrayData&quot;];
        //make an array from the string.
        NSArray *array = [arrayString componentsSeparatedByString:@&quot;,&quot;];
        //cast the index as an int
        int theIndex = [_arrayIndexTextField.text intValue];
        //output the results
        if ([_arrayIndexTextField.text isEqualToString:@&quot;&quot;]) {
            //if there is no index number in the array index, just print the name of array and the string
            _outputLabel.text = [NSString stringWithFormat:@&quot;%@: %@&quot;,[matches valueForKey:@&quot;name&quot;],arrayString];
            
        } else {
            //else output the indexed item requested from our array
            if (theIndex &gt;= [array count]) {
                _outputLabel.text = [NSString stringWithFormat:@&quot;There is no %d item in %@&quot;, theIndex,[matches valueForKey:@&quot;name&quot;]];
            } else {
                _outputLabel.text = [NSString stringWithFormat:@&quot;%@: Item at %@ is %@&quot;,[matches valueForKey:@&quot;name&quot;],_arrayIndexTextField.text, array[theIndex]];
            }
            
        }
    }
}

</pre>
<p>9. Finally modify the viewDidLoad method as below to A. make the output label scale the font dynamically to fit all of the output text, and B. to add a sample array called groceries.</p>
<pre class="brush: objc; collapse: false; light: false; title: + code, click to expand.; toolbar: true; notranslate">
- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    //make the labels font adjust to fit all the data
    _outputLabel.adjustsFontSizeToFitWidth = TRUE;
    
    //create sample array called groceries
    NSArray *sampleArray = @[@&quot;bread&quot;, @&quot;butter&quot;, @&quot;milk&quot;, @&quot;cheese&quot;, @&quot;cereal&quot;];
    NSString * arrayAsString = [[sampleArray valueForKey:@&quot;description&quot;] componentsJoinedByString:@&quot;,&quot;];
    CoreDataSaveArrayAppDelegate *appDelegate = [[UIApplication sharedApplication]delegate];
    NSManagedObjectContext *context = [appDelegate managedObjectContext];
    NSManagedObject *newArray;
    newArray = [NSEntityDescription insertNewObjectForEntityForName:@&quot;Array&quot; inManagedObjectContext:context];
    [newArray setValue:arrayAsString forKey:@&quot;arrayData&quot;];
    [newArray setValue:@&quot;groceries&quot; forKey:@&quot;name&quot;];
}
</pre>
<p>To test the app: start by entering <strong>groceries</strong> in the Array Name field. Then press the Fetch Data button. This should print all the &#8220;groceries&#8221; in the sample array. Try entering groceries in the Name field and 2 in the index field. This should return the third item in the groceries array. To make a new array, enter a new array name in the Array Name field. Add items, separated by commas, into the array data field. Tap save. This should save the data. You can search your new data as you did the groceries.<br />
<a href="owolf.net/uploads/iOS/CoreDataSaveArray.zip"><br />
Here is the source code: CoreDataSaveArray.zip</a> </p>
<p>Information found in <a href="http://www.techotopia.com/index.php/IPhone_iOS_6_Development_Essentials">iPhone IOS 6 Development Essentials</a> by Neil Smyth was very helpful. It&#8217;s online for <a href="http://www.techotopia.com/index.php/IPhone_iOS_6_Development_Essentials">free</a>, but you can buy a kindle edition or ebook, as I did.</p>
]]></content:encoded>
			<wfw:commentRss>http://oliverwolfson.com/core-data-tutorial-save-and-fetch-an-array-to-core-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Roger Ballen, Photographer</title>
		<link>http://oliverwolfson.com/roger-ballen-photographer/</link>
		<comments>http://oliverwolfson.com/roger-ballen-photographer/#comments</comments>
		<pubDate>Mon, 17 Dec 2012 03:00:16 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[photography]]></category>
		<category><![CDATA[die antwoord]]></category>
		<category><![CDATA[Photographer]]></category>
		<category><![CDATA[Roger Ballen]]></category>

		<guid isPermaLink="false">http://oliverwolfson.com/?p=2863</guid>
		<description><![CDATA[American photographer living in South Africa. Creates gritty and disturbing images of, often, unique looking people in real and fictional settings. Wikipedia Interview Examples]]></description>
				<content:encoded><![CDATA[<p>American photographer living in South Africa. Creates gritty and disturbing images of, often, unique looking people in real and fictional settings. </p>
<p><a href="http://en.wikipedia.org/wiki/Roger_Ballen">Wikipedia</a></p>
<p><a href="http://www.rogerballen.com/articles/zoning-in-an-interview-with-roger-ballen">Interview</a><br />
<a href="https://www.google.co.th/search?hl=en&#038;client=firefox-a&#038;hs=Dp2&#038;rls=org.mozilla:en-US:official&#038;q=Roger+Ballen&#038;bav=on.2,or.r_gc.r_pw.r_cp.r_qf.&#038;bvm=bv.1355325884,d.bmk&#038;bpcl=39967673&#038;biw=1282&#038;bih=636&#038;um=1&#038;ie=UTF-8&#038;tbm=isch&#038;source=og&#038;sa=N&#038;tab=wi&#038;ei=W9bLUMSZH8TnrAe3u4CoCQ"><br />
Examples</a></p>
<p><img alt="" src="http://www.slightlylucid.com/wp-content/uploads/2010/01/roger-ballen-4.jpg" title="Roger Ballen" class="alignnone" width="450" height="450" /></p>
]]></content:encoded>
			<wfw:commentRss>http://oliverwolfson.com/roger-ballen-photographer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Citation de Camus</title>
		<link>http://oliverwolfson.com/citation-de-camus/</link>
		<comments>http://oliverwolfson.com/citation-de-camus/#comments</comments>
		<pubDate>Tue, 11 Dec 2012 17:28:17 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[apps]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[Captions!]]></category>
		<category><![CDATA[French language]]></category>

		<guid isPermaLink="false">http://oliverwolfson.com/?p=2848</guid>
		<description><![CDATA[He who despairs at what goes on in the world is a coward, but he who looks for hope in the human condition is a fool.]]></description>
				<content:encoded><![CDATA[<p><img src="http://oliverwolfson.com/wp-content/uploads/2012/12/20121212-0028041-600x402.jpg" alt="" title="20121212-002804" width="600" height="402" class="alignright size-medium wp-image-3014" /></p>
<p>He who despairs at what goes on in the world is a coward, but he who looks for hope in the human condition is a fool.</p>
]]></content:encoded>
			<wfw:commentRss>http://oliverwolfson.com/citation-de-camus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programmatic UIpopoverController</title>
		<link>http://oliverwolfson.com/programmatic-uipopovercontroller/</link>
		<comments>http://oliverwolfson.com/programmatic-uipopovercontroller/#comments</comments>
		<pubDate>Sat, 30 Jun 2012 11:57:01 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[ObjectiveC]]></category>
		<category><![CDATA[Popover]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://oliverwolfson.com/?p=2826</guid>
		<description><![CDATA[Here is an Xcode project that creates an iPad UIPopover with programmatically created glossy buttons (with core graphics). Attempts to match the generic Apple popover buttons.]]></description>
				<content:encoded><![CDATA[<p><a href="http://oliverwolfson.com/wp-content/uploads/2012/06/Popovertest_programmatic.zip">Here is an Xcode project</a> that creates an iPad UIPopover with programmatically created glossy buttons (with core graphics). Attempts to match the generic Apple popover buttons.</p>
]]></content:encoded>
			<wfw:commentRss>http://oliverwolfson.com/programmatic-uipopovercontroller/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
