This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Welcome to your first lesson on Objective-C, the language used by Apple and Apple Developers to | |
create iPhone, iPad, and Mac apps. Objective-C has been around since the early 80s and has an | |
interesting history (according to Wikipedia). Basically, people wanted to have two things come | |
together: the C programming language and Object-oriented programming. The result: Objective-C. | |
In one corner we have classes and methods, and in the other we have hints and pointers. It's not | |
the prettiest thing you'll ever see (though no one to date has ever died from reading Objective-C | |
code). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface Person : NSObject | |
@property NSString *firstName; | |
@property NSString *lastName; | |
@property int age; | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "Person.h" | |
@implementation Person | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// pawhubAppDelegate.m | |
// pawhub | |
// | |
// Created by Gosc 01 on 13-03-20. | |
// Copyright 2013 __MyCompanyName__. All rights reserved. | |
// | |
#import "pawhubAppDelegate.h" | |
#import "pawhubViewController.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$stepCollection.each( function (index,el) { | |
var $self = $(this); // wednesday and so on .. | |
$self.data("validate" , validationMethods[$self.data("insert-property")]); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$stepCollection.each( function (index,el) { | |
var $self = $(this); // wednesday and so on .. | |
$self.data("validate" , validationMethods[$self.data("insert-property")]); | |
}); | |
$stepCollection.eq(1).data("validate")(); // This have context of window |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var rollOut = function() { | |
$iframeTable.fadeIn(); | |
$iframeTable.css({display: "block"}); | |
$(this).animate({width: "100%"}); | |
$rezerwujImg.fadeOut(); | |
$reservationSlider.off("click").click(hide); | |
}; | |
var hide = function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
</head> | |
<p>Hello</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<EditText android:id="@+id/edit_message" | |
android:layout_weight = "1" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:hint="@string/edit_message" /> | |
<Button | |
android:layout_weight = "2" | |
android:layout_width="wrap_content" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-compile: | |
[javac] Compiling 3 source files to /root/an/MyFirstApp/bin/classes | |
[javac] /root/an/MyFirstApp/src/com/example/myfirstapp/DisplayMessageActivity.java:22: error: cannot find symbol | |
[javac] String message = intent.getStringExtra(MainActivity.EXTRA_MESSAGE); | |
[javac] ^ | |
[javac] symbol: variable MainActivity | |
[javac] location: class DisplayMessageActivity | |
[javac] /root/an/MyFirstApp/src/com/example/myfirstapp/DisplayMessageActivity.java:6: error: duplicate class: DisplayMessageActivity | |
[javac] public class DisplayMessageActivity extends Activity { | |
[javac] ^ |
OlderNewer