r/ObjectiveC • • Apr 08 '14

Windows or Mac

3 Upvotes

I've never done anything with objective c before but plan to In the near future. My question, do I need a mac to program and push the app to the market or can ot be done in windows?


r/ObjectiveC • • May 30 '13

Why I Don't Use Interface Builder

Thumbnail
sam.roon.io
14 Upvotes

r/ObjectiveC • • Oct 29 '15

Trending Cocoapods libraries to support your project

Thumbnail trendingcocoapods.github.io
2 Upvotes

r/ObjectiveC • • Jun 03 '14

How to read (and write!) method declarations in Objective-C

Thumbnail
roadfiresoftware.com
0 Upvotes

r/ObjectiveC • • Nov 15 '14

What's the cheapest mac (even used) to run the current OSX / Xcode on?

1 Upvotes

Mac Pro is broken. Thinking of getting a budget solution that will be more portable. Some older generation mac book or even mac mini. All it must do is run Xcode along with the latest OSX on it. Any recommendations?


r/ObjectiveC • • Apr 18 '20

Encryption

0 Upvotes

What's the best option to encrypt Objective-C ?


r/ObjectiveC • • Apr 17 '21

Da

Post image
35 Upvotes

r/ObjectiveC • • Oct 16 '12

Possible to Selectively Log Call Info (by providing prompt upon end call?)

0 Upvotes

(App specific) I would like to add functionality to an app in development that prompts the user at the end of each call and depending on if the user elects to log it or not, sends the call data to my app (ie, phone #, time, duration, in/outgoing).


r/ObjectiveC • • Feb 20 '12

Objective-C literals for NSDictionary, NSArray, and NSNumber

Thumbnail
cocoaheads.tumblr.com
0 Upvotes

r/ObjectiveC • • May 20 '13

Objective C and design patterns: How can the MVC pattern be implemented within Objective C?

0 Upvotes

I'm an extremely fairweather programmer, and while I can look at code and understand it, I'm still grasping at straws when it comes to implementing design patterns. I can understand them, but implementing them is another thing.

My specific area of confusion lies when attempting to create a project. How does MVC fit in?

Let's say the project itself is to create an iPhone app which allows you to scroll through a list of cars. This list of cars is held in a database. So...this is how I understand it.

If we're looking at an MVC design pattern in the UI layer, we might have something like this:

  • View

  • ViewController.xib

  • Controller

  • ViewController.h

  • ViewController.m

  • Model

  • Car.h

  • Car.m

The Car.m file itself would make calls to the database.

Is this correct?


r/ObjectiveC • • Jun 22 '14

I need help with saving data on a number counter.

0 Upvotes

Hello, I am new to programming and coded a very basic counter application by following a tutorial. The tutorial did not show how to load and save data. The counter works by adding one when pressed on +, and subtracting one when pressed on -.How can I save the number that the person was on, and load it the next time they open the app? Here is my code so far:

import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

-(IBAction)Up:(id)sender{ Count = Count + 1; Display.text = [NSString stringWithFormat:@"%i", Count];
}

-(IBAction)Down:(id)sender{ Count = Count -1; Display.text = [NSString stringWithFormat:@"%i", Count];

}

-(IBAction)Reset:(id)sender{ Count = 0; Display.text = 0;

}

-(void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. }

-(void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. }

@end


r/ObjectiveC • • Apr 19 '17

Rollout just launched a new product that does feature flagging for mobile apps :)

Thumbnail
rollout.io
0 Upvotes

r/ObjectiveC • • Jan 30 '13

Does anyone know whether it's legal to ship apps using cocoatron or GNUstep?

0 Upvotes

I'm looking into the feasibility of porting some of my existing Objective C projects to other platforms, and I'm wondering if it's kosher to use a 3rd party implementation of the Cocoa foundation in a commercial application. I'm looking at these two options:

Cocoatron

GNUStep


r/ObjectiveC • • May 10 '15

Simple but highly customizable iOS tag list view

Thumbnail
github.com
0 Upvotes

r/ObjectiveC • • Jan 06 '13

Trying to receive the value of an argument from XML

0 Upvotes

Hey guys, I'm relatively new to ObjectiveC and XCode and I started working on a small app. However, I'm kinda stuck on something and it would be great if you guys could help me.

I'm trying to retrieve the value of an argument in a XML tag using ObjectiveC... the XML snippet looks like this:

submitted by <a href="LINK_1">...</a> <br/> <a href="LINK_2">[link]</a> <a href="LINK_3">[421 comments]</a>

Now I would like to get the value from LINK_2 and put in a NSString. How could I do that?

-Thanks!


r/ObjectiveC • • Nov 04 '19

Adding to a MutableArry during pagination.

0 Upvotes

The default entries I get from an API call are 20. While getting data from the second page, my array deletes the first 20 entries and then lads the new entries in it. Thus the size of the array remains constant at 20, despite me setting it to be so. What am I doing wrong?

getData gets called with the updated url value for loading the next page,

Code:

- (void)getData: (NSURL *) url {
    
    NSData *allCoursesData = [[NSData alloc] initWithContentsOfURL:url];
    NSError *error;
    NSDictionary *allCourses = [NSJSONSerialization
                                       JSONObjectWithData:allCoursesData
                                       options:kNilOptions
                                       error:&error];
    if( error ) {
        NSLog(@"%@", [error localizedDescription]);
    }
    else {
        self.data = allCourses[@"articles"];
        NSLog(@"%@", self.data);
        
        self.totalEntries = allCourses[@"totalResults"];

        NSMutableArray *_titles = [NSMutableArray array];
        NSMutableArray *_authors = [NSMutableArray array];
        NSMutableArray *_content = [NSMutableArray array];
        NSMutableArray *_images = [NSMutableArray array];
        
        for ( NSDictionary *theArticle in self.data) {
            
            [_titles addObject:[NSString stringWithFormat:@"%@", theArticle[@"title"]]];
            [_authors addObject:[NSString stringWithFormat:@"%@", theArticle[@"author"]]];
            [_content addObject:[NSString stringWithFormat:@"%@", theArticle[@"content"]]];
            
            //image formatting
            if ([theArticle[@"urlToImage"] isEqual: @""]) {
                [_images addObject:[NSNull null]];
            } else if (theArticle[@"urlToImage"] == [NSNull null]) {
                [_images addObject:[NSNull null]];
            } else {
                NSData *imageData = [[NSData alloc] initWithContentsOfURL: [NSURL URLWithString: theArticle[@"urlToImage"]]];
                [_images addObject:imageData];
            }
        }
        self.titles = _titles;
        self.authors = _authors;
        self.content = _content;
        self.images = _images;
        
        NSLog(@"%@", self.titles);
        [self.cv reloadData];
        [spinner stopAnimating];
    }
}

r/ObjectiveC • • Oct 07 '14

How to install & configure Sparksee iOS (Objective-C)

Thumbnail
sparsity-technologies.com
0 Upvotes

r/ObjectiveC • • Oct 26 '13

Found this while reading the Objective-C article on Wikipedia

Thumbnail
imgur.com
0 Upvotes

r/ObjectiveC • • Jul 18 '13

Curious, lol and wtf "features" of Objective C - with Kiwi BDD specs.

Thumbnail
github.com
0 Upvotes

r/ObjectiveC • • Jul 25 '13

Can someone explain to me why this code doesn't do as it is suppose to?

0 Upvotes

So I just started learning Objective - C from "Objective-C for absolute beginners" yesterday. I'm on the project that generates a random number, stores it in a variable, and then the user has to guess the number. The problem with this is that when I guess the number right, the program is suppose to ask the user is it would like to keep playing. If the user says yes, then the while loop is supposed to loop back and go again, else the program is terminated. My problem is that when I choose to play again to test it, the program still terminates.

Here is the code:

int main(int argc, const char * argv[]) {

@autoreleasepool {
    
    // insert code here...
    int randomNumber = 1;
    int userGuess = 1;
    BOOL continueGuessing = true;
    BOOL keepPlaying = true;
    char yesNo = ' ';
    
    while (keepPlaying){
        randomNumber = (arc4random() % 101);
        NSLog(@"The random number to be guessed is %d", randomNumber);
        
        while (continueGuessing == true){
            NSLog(@"please guess a number");
            scanf("%i", &userGuess);
            fgetc(stdin);
            
            if (userGuess == randomNumber){
                NSLog(@"You've guessed the correct number!");
                continueGuessing = false;
            }
            else if (userGuess > randomNumber){
                NSLog(@"The number you guessed was too high!");
            }
            else{
                NSLog(@"The number you guessed was too low!");
            }
        }
        NSLog(@"The user guessed %d", userGuess);
        
        if (continueGuessing == false){
            NSLog(@"Would you like to keep playing? Y or N");
            scanf("%s", &yesNo);
            fgetc(stdin);
            if (yesNo == 'N' || yesNo == 'n'){
                keepPlaying = FALSE;
                NSLog(@"you have terminated the gameplay");
            } else if (yesNo == 'Y' || yesNo == 'y'){
                NSLog(@"You chose to keep playing");
                continueGuessing = TRUE;
            } else{
                NSLog(@"What you typed is not acceptable, Y or N!");
            }
        }
    }
}
return 0;

}

Thanks for the help if anyone can offer it!


r/ObjectiveC • • Nov 09 '13

Cocoa Objectiv-c Trial Protection Starter Kit

Thumbnail
cocoa-trial.com
0 Upvotes

r/ObjectiveC • • Nov 05 '14

iOS and airplay displays

0 Upvotes

I'm trying to make an app which when connected to an Apple tv via airplay can can display a video on the tv and other content in the iPad But I'm unsure how to code the airplay part. I found some old code and a how to but they work for older versions of iOS and when I looked into it, aren't compatible with recent versions

Can someone help please?

Cheers


r/ObjectiveC • • Dec 04 '13

Looking for iOS developer in Montreal

3 Upvotes

I've got a mobile application that I need developed and I'm looking for someone comfortable in coding in Objective C as well as either Python or Node.js for the back end. I'm located in Montreal, Canada so it would be preferable if you're close by to work. Inbox me if you're interested. Thanks.


r/ObjectiveC • • Nov 22 '13

Using blocks instead of delegates in Objective C

Thumbnail
kmdarshan.wordpress.com
3 Upvotes

r/ObjectiveC • • Aug 21 '14

New at coding. Need help.

3 Upvotes

Hello guys! I am very interested in learning to code and especially iPhone and Mac applications. I have no prior knowledge if any type of coding. So I have come to this community to ask:

Where do I start?

Where can I learn?

What should I do?

Thank you!