Cocoa, Objective C - Alert Panels!
|
|
- Jeffery Willis
- 6 years ago
- Views:
Transcription
1 Cocoa, Objective C - Alert Panels By Debasis Das March of 13
2 Alerts are key to any application. Some of the usages of an application alerts are as - To display an informative message - To take confirmation from user before continuing with a transaction - As a success or failure response to the end user. - Giving the user more than one option to take a action (save, dont-save, cancel etc). An NSAlert object displays an application model or as a sheet attached to a document window. Sample 1: Showing a simple alert message with a warning alert style -(void)showsimplealert NSAlert *alert = [[NSAlert alloc] init]; [alert addbuttonwithtitle:@"continue"]; [alert addbuttonwithtitle:@"cancel"]; [alert setmessagetext:@"alert"]; [alert setinformativetext:@ NSWarningAlertStyle \r Do you want to continue with delete of selected records"]; [alert setalertstyle:nswarningalertstyle]; 2 of 13
3 [alert beginsheetmodalforwindow:[self window] modaldelegate:self contextinfo:nil]; - (void)alertdidend:(nsalert *)alert returncode:(nsinteger)returncode contextinfo:(void *)contextinfo /* The following options are deprecated in Use NSAlertFirstButtonReturn instead NSAlertDefaultReturn = 1, NSAlertAlternateReturn = 0, NSAlertOtherReturn = -1, NSAlertErrorReturn = -2 NSOKButton = 1, // NSModalResponseOK should be used NSCancelButton = 0 // NSModalResponseCancel should be used */ if (returncode == NSOKButton) NSLog(@"(returnCode == NSOKButton)"); else if (returncode == NSCancelButton) NSLog(@"(returnCode == NSCancelButton)"); else if(returncode == NSAlertFirstButtonReturn) NSLog(@"if (returncode == NSAlertFirstButtonReturn)"); else if (returncode == NSAlertSecondButtonReturn) NSLog(@"else if (returncode == NSAlertSecondButtonReturn)"); else if (returncode == NSAlertThirdButtonReturn) NSLog(@"else if (returncode == NSAlertThirdButtonReturn)"); else NSLog(@"All Other return code %d",returncode); 3 of 13
4 Sample 2: Showing a simple alert message with a critical alert style -(void)showsimplecriticalalert NSAlert *alert = [[NSAlert alloc] init]; [alert addbuttonwithtitle:@"ok"]; [alert setmessagetext:@"alert"]; [alert setinformativetext:@"nscriticalalertstyle\rplease enter a valid id."]; [alert setalertstyle:nscriticalalertstyle]; [alert beginsheetmodalforwindow:[self window] modaldelegate:self didendselector:@selector(alertdidend:returncode:contextinfo:) contextinfo:nil]; 4 of 13
5 Sample 3: Showing a simple alert message with a informational alert style -(void)showsimpleinformationalalert NSAlert *alert = [[NSAlert alloc] init]; [alert addbuttonwithtitle:@"ok"]; [alert setmessagetext:@"alert"]; [alert setinformativetext:@"nsinformationalalertstyle \r Please enter a valid id."]; [alert setalertstyle:nsinformationalalertstyle]; [alert beginsheetmodalforwindow:[self window] modaldelegate:self didendselector:@selector(alertdidend:returncode:contextinfo:) contextinfo:nil]; 5 of 13
6 Sample 4: Creating an Alert with more than 3 buttons -(void)showsimplealertsheetwithmultiplebuttons NSAlert *alert = [[NSAlert alloc] init]; [alert addbuttonwithtitle:@"button One"]; //will generate a return code of 1000 [alert addbuttonwithtitle:@"button Two"]; //will generate a return code of 1001 [alert addbuttonwithtitle:@"button Three"]; //will generate a return code of 1002 [alert addbuttonwithtitle:@"button Four ]; //will generate a return code of 1003 [alert addbuttonwithtitle:@"button Five"]; //will generate a return code of 1004 [alert setmessagetext:@"alert"]; [alert setinformativetext:@"this is a five buttons alert message"]; [alert setalertstyle:nsinformationalalertstyle]; [alert beginsheetmodalforwindow:[self window] modaldelegate:self didendselector:@selector(alertdidend:returncode:contextinfo:) contextinfo:nil]; Sample 5: Creating an Alert using Factory Methods 6 of 13
7 -(void)showalertfromfactorymethod NSAlert *alert = [NSAlert alertwithmessagetext:@"delete the record?" defaultbutton:@"ok" alternatebutton:@"cancel" otherbutton:nil informativetextwithformat:@"deleted records cannot be restored."]; [alert beginsheetmodalforwindow:[self window] modaldelegate:self didendselector:@selector(alertdidend:returncode:contextinfo:) contextinfo:nil]; 7 of 13
8 Sample 6: Creating an Alert using Functional API -(void)showalertusingfunctionalapi you really want to delete the selected rows?", // sheet // default button label nil, // no third // other button label [self window], // window, the sheet is attached to. self, // The delegate for the NULL, // no need for did-dismiss selector nil, // context is no undo for this operation."); //didendselector //A selector for a method implemented by modaldelegate. This method is sent when the modal session is ended, but before the sheet is dismissed. //diddismissselector //A selector for a method implemented by modaldelegate. This method is sent after the sheet is dismissed in the event 8 of 13
9 Sample 7: Creating an Alert with Help button in the alert -(void)showalertwithhelp NSAlert *alert = [[NSAlert alloc] init]; [alert addbuttonwithtitle:@"ok"]; [alert addbuttonwithtitle:@"cancel"]; [alert setmessagetext:@"alert"]; [alert setinformativetext:@"please enter an id."]; [alert setalertstyle:nswarningalertstyle]; [alert setshowshelp:yes]; [alert setdelegate:self]; [alert beginsheetmodalforwindow:[self window] modaldelegate:self didendselector:@selector(alertdidend:returncode:contextinfo:) contextinfo:nil]; - (BOOL)alertShowHelp:(NSAlert *)alert NSLog(@"%s", func ); NSString *path = [[NSBundle mainbundle] pathforresource:@"credits" oftype:@"rtf"]; BOOL flag = [[NSWorkspace sharedworkspace] openfile:path]; return flag; 9 of 13
10 -(void)testdeprecatedalertmethods NSInteger integ = Format", BUTTON"); //The Flow stops here and the next line is not executed till the time user clicks on a button on the alert panel NSInteger criticalinteg = BUTTON"); NSLog(@"integ %ld",integ); NSLog(@"criticalInteg %ld",criticalinteg); 10 of 13
11 Sample 8: Creating a custom alert sheet and positioning it at a particular point -(void)showcustomsheet if (_customsheet) //Check the mycustomsheet instance variable to make sure the custom sheet does not already exist. [NSBundle owner: self]; [NSApp beginsheet: self.customsheet modalforwindow: self.window modaldelegate: self contextinfo: nil]; // Sheet is up here. - (IBAction)closeMyCustomSheet: (id)sender 11 of 13
12 [NSApp endsheet:_customsheet]; - (void)didendsheet:(nswindow *)sheet returncode:(nsinteger)returncode contextinfo: (void *)contextinfo NSLog(@"%s", func ); NSLog(@"return Code %d",returncode); [sheet orderout:self]; The below method is required to have a different point to show the alert from - (NSRect)window:(NSWindow *)window willpositionsheet:(nswindow *)sheet usingrect:(nsrect)rect NSLog(@"%s", func ); if (sheet == self.customsheet) NSLog(@"if block"); NSRect fieldrect = [self.showalertbutton frame]; fieldrect.size.height = 0; return fieldrect; else NSLog(@"else block"); return rect; 12 of 13
13 Sample 9: Creating a alert sheet with additional information displayed in an accessory view -(void)showalertwithdetailedinformation:(nsstring *)detailedinformation NSTextView *accessory = [[NSTextView alloc] initwithframe:nsmakerect(0,0,200,50)]; NSFont *font = [NSFont systemfontofsize:[nsfont systemfontsize]]; NSDictionary *textattributes = [NSDictionary dictionarywithobject:font forkey:nsfontattributename]; [accessory inserttext:[[nsattributedstring alloc] initwithstring:detailedinformation attributes:textattributes]]; [accessory seteditable:no]; [accessory setdrawsbackground:yes]; [accessory setbackgroundcolor:[nscolor cyancolor]]; NSAlert *alert = [[NSAlert alloc] init]; [alert setmessagetext:@"message text."]; [alert setinformativetext:@"informative text."]; [alert setaccessoryview:accessory]; [alert runmodal]; 13 of 13
Files & Archiving. Lecture 8
Files & Archiving Lecture 8 Persistent Data NSUserDefaults Dead simple to use Just one big file Only supports property list types What if you want more features? File Tasks Finding the file path User selected
More informationComputer Science, a Mac, and You. Kevin Cathey Junior, Computer Science
Computer Science, a Mac, and You Kevin Cathey Junior, Computer Science Roadmap Introduction to Apple s Developer Tools Xcode & Instruments Implement three MP s acm.uiuc.edu Introduction to Developer Tools
More informationCocoa and Objective-C Cookbook
Cocoa and Objective-C Cookbook Move beyond basic Cocoa development using over 70 simple and effective recipes for Mac OS X development Jeff Hawkins BIRMINGHAM - MUMBAI Cocoa and Objective-C Cookbook Copyright
More informationMultitasking and Background Execution
Multitasking and Background Execution Fall, 2012 Prof. Massimiliano "Max" Pala pala@nyu.edu Introduction Spawning Threads and Tasks Background Execution User hits 'home' button the app is sent in the background
More informationQuickPrints SDK for ios Version 3.3 August 06, 2014
Introduction The QuickPrints SDK for ios (ipod Touch, iphone, and ipad) is a static library that provides a set of APIs that can be used to submit a photo print order to a Walgreens store. This document
More informationCS193E Lecture 11. Copy/Paste & Pasteboards Scrolling Printing
CS193E Lecture 11 Copy/Paste & Pasteboards Scrolling Printing Agenda Questions on previous material or assignment? Start thinking about final projects! Demo PersonalTimeline 2.5 Copy and Paste Scrolling
More informationWhat s New in Cocoa for macos
Session #WWDC18 What s New in Cocoa for macos 209 Ali Ozer, Cocoa Frameworks Chris Dreessen, Cocoa Frameworks Jesse Donaldson, Cocoa Frameworks 2018 Apple Inc. All rights reserved. Redistribution or public
More informationPLUX ios Application Programming Interface. Documentation - ios API
PLUX ios Application Programming Interface Documentation - ios API 1. Introduction The PLUX ios Application Programming Interface brings to ios applications all the functionalities of PLUX devices. The
More informationITP 342 Mobile App Dev. Alerts
ITP 342 Mobile App Dev Alerts Alerts UIAlertController replaces both UIAlertView and UIActionSheet, thereby unifying the concept of alerts across the system, whether presented modally or in a popover.
More informationCS193E Lecture 12. Formatters Cocoa Text More View Drawing
CS193E Lecture 12 Formatters Cocoa Text More View Drawing Quick Scroll View Demo Announcements Questions on previous material or assignment? If you don t get a grade by Sunday, please let us know Some
More informationApp SandBox Directory
Data Persistence Sisoft Technologies Pvt Ltd SRC E7, Shipra Riviera Bazar, Gyan Khand-3, Indirapuram, Ghaziabad Website: www.sisoft.in Email:info@sisoft.in Phone: +91-9999-283-283 App SandBox Directory
More informationios SDK API Reference Guide mpos Thermal Printer BGT-100P / BGT-102P SRP-Q300 / SRP-Q302
is SDK API Reference Guide mps Thermal Printer Rev. 2.00 BGT-100P / BGT-102P SRP-Q300 / SRP-Q302 http://www.bixolon.com Introduction This SDK manual describes the contents of the library required to develop
More informationCS193E Lecture 7. Document-based Applications NSTableView Key-Value Coding
CS193E Lecture 7 Document-based Applications NSTableView Key-Value Coding Agenda Questions? Review: delegates, MVC Document-based apps Table views Key Value Coding Model, View, Controller Controller Model
More informationThe Developers Magazine
The Developers Magazine published for members every two months by The Developers Group incorporating the DotNET Developers Group and Delphi Developers Group January/February 2010 Contents This issue celebrates
More informationCS193p Spring 2010 Thursday, April 29, 2010
CS193p Spring 2010 Announcements You should have received an e-mail by now If you received e-mail approving enrollment, but are not in Axess, do it! If you have any questions, please ask via e-mail or
More informationITP 342 Mobile App Dev. Unit Testing
ITP 342 Mobile App Dev Unit Testing Testing Xcode provides you with capabilities for extensive software testing. Testing your projects enhances robustness, reduces bugs, and speeds the acceptance of your
More informationITP 342 Mobile App Dev. Data Types
ITP 342 Mobile App Dev Data Types Types of Data Types C Primitives The vast majority of Objective-C s primitive data types are adopted from C, although it does define a few of its own to facilitate its
More informationObjective-C and COCOA Applications
Objective-C and COCOA Applications Fall, 2012 Prof. Massimiliano "Max" Pala pala@nyu.edu Overview X-Code IDE Basics Objective-C Classes Methods Invocations Important Types Memory Management Protocols Exceptions
More informationCore Animation. Building Animated UI s. Bill Dudney. Gala Factory Software LLC. Bill Dudney Core Animation: Building Animated UI s Slide 1
Core Animation Building Animated UI s Bill Dudney Gala Factory Software LLC Bill Dudney Core Animation: Building Animated UI s Slide 1 Objective-C Dynamic Object Oriented C Based Smalltalk Roots Bill Dudney
More informationAVAudioRecorder & System Sound Services
AVAudioRecorder & System Sound Services Dept. of Multimedia Science, Sookmyung Women s University. prof. JongWoo Lee Index AVAudioRecorder? - (AudioRecorder) System Sound Service? - (SysSound) AVAudioRecorder
More informationPorting Objective-C to Swift. Richard Ekle
Porting Objective-C to Swift Richard Ekle rick@ekle.org Why do we need this? 1.2 million apps in the ios App Store http://www.statista.com/statistics/276623/numberof-apps-available-in-leading-app-stores/
More informationObjective-C Runtime. Cocoa s Jewel in the Crown. NSConference Nicolas
Objective-C Runtime Cocoa s Jewel in the Crown NSConference 2011 Nicolas Seriot @nst021 [isa kindof:magic] 1. Objective-C 2. Recipes 3. Introspection 4. Debugging Objective-C Runtime OO, Smalltalk-like,
More informationStanford CS193p. Developing Applications for ios. Spring Stanford CS193p. Spring 2012
Developing Applications for ios Today NSTimer and perform after delay Two delayed-action alternatives. More View Animation Continuation of Kitchen Sink demo Alerts and Action Sheets Notifying the user
More informationITP 342 Advanced Mobile App Dev. Core Data
ITP 342 Advanced Mobile App Dev Core Data Persistent Data NSUser Defaults Typically used to save app preferences Property List (plist) in Documents Directory Data is in a dictionary or an array Coders
More informationMonday, 1 November The ios System
The ios System System Overview System Overview System Overview System Overview System Overview System Overview Foundation Classes (Useful) Foundation Framework Value and collection classes User defaults
More informationDL/ID Parsing Component for ios
DL/ID Parsing Component for ios This publication contains proprietary information of Wizz Systems LLC, provided for customer use only. No other use is authorized without the express written permission
More informationCS193p Spring 2010 Wednesday, May 26, 2010
CS193p Spring 2010 Announcements Please e-mail if you want to take the option to present your final project next Wednesday. (You will still have until the following Tuesday to turn in your code.) No class
More informationv5: How to restore Exchange databases
This article demonstrates how to restore Microsoft Exchange server databases taken by Macrium Reflect Server Plus Macrium Reflect Server Plus allows you to restore select databases back to your Microsoft
More informationIntegrating Game Center into a BuzzTouch 1.5 app
into a BuzzTouch 1.5 app This tutorial assumes you have created your app and downloaded the source code; created an App ID in the ios Provisioning Portal, and registered your app in itunes Connect. Step
More informationCreating Extensions for ios and OS X, Part Two
Frameworks #WWDC14 Creating Extensions for ios and OS X, Part Two Architecture Session 217 Damien Sorresso Overloaded Operator 2014 Apple Inc. All rights reserved. Redistribution or public display not
More informationCS193P - Lecture 16. iphone Application Development. Audio APIs Video Playback Displaying Web Content Settings
CS193P - Lecture 16 iphone Application Development Audio APIs Video Playback Displaying Web Content Settings 1 Today s Topics Audio APIs Video Playback Settings Bundles 2 Audio Playback 3 Uses for Audio
More informationObjective-C and Cocoa User Guide and Reference Manual
Objective-C and Cocoa User Guide and Reference Manual Version 7.1 Copyright and Trademarks LispWorks Objective-C and Cocoa Interface User Guide and Reference Manual Version 7.1 March 2017 Copyright 2017
More informationCLOCK4 TUTORIAL VERY SIMPLE HELLO WORLD COCOA APPLICATION
http:clanmills.com Page 1/8 CLOCK4 TUTORIAL VERY SIMPLE HELLO WORLD COCOA APPLICATION Life in a new programming environment has to start somewhere. Everybody knows the hello world application written in
More informationData IAP 2010 iphonedev.csail.mit.edu edward benson / Thursday, January 14, 2010
Data IAP 2010 iphonedev.csail.mit.edu edward benson / eob@csail.mit.edu Today Property Lists User Defaults Settings Panels CoreData Property Lists Today Add persistence. plist 1. Using Property Lists in
More informationAdvanced Cocoa Text Tips and Tricks. Aki Inoue Cocoa Engineer
Advanced Cocoa Text Tips and Tricks Aki Inoue Cocoa Engineer 2 Introduction Only on Mac OS Diving deeper Understanding the layout process Getting comfortable with extending and customizing base functionalities
More informationCS193E Lecture 13. More Cocoa Text Drag and Drop Inspectors
CS193E Lecture 13 More Cocoa Text Drag and Drop Inspectors Today s Topics Questions on the Personal Timeline III assignment? Announcements Typo in last lecture s slides Undo behavior and copy/cut/paste
More informationiphone Programming Touch, Sound, and More! Norman McEntire Founder Servin Flashlight CodeTour TouchCount CodeTour
iphone Programming Touch, Sound, and More! Norman McEntire Founder Servin 1 Legal Info iphone is a trademark of Apple Inc. Servin is a trademark of Servin Corporation 2 Welcome Welcome! Thank you! My promise
More informationCollections. Fall, Prof. Massimiliano "Max" Pala
Collections Fall, 2012 Prof. Massimiliano "Max" Pala pala@nyu.edu Overview Arrays Copy and Deep Copy Sets Dictionaries Examples Arrays Two Classes NSArray and NSMutableArray (subclass of NSArray) int main(int
More informationCisco StadiumVision Mobile API for Apple ios
CHAPTER 1 Revised: October 31, 2013 This chapter describes the Cisco StadiumVision Mobile SDK Release 1.3 for Apple ios, and contains the following sections: New Features in Cisco StadiumVision Mobile
More informationCLOCK TUTORIAL VERY SIMPLE HELLO WORLD COCOA APPLICATION
http:clanmills.com Page 1/10 CLOCK TUTORIAL VERY SIMPLE HELLO WORLD COCOA APPLICATION Life in a new programming environment has to start somewhere. Everybody knows the hello world application written in
More informationITP 342 Mobile App Development. Singleton
ITP 342 Mobile App Development Singleton Shared Model Object A singleton is a special kind of class where only one instance of the class exists for the current process. In the case of an iphone app, the
More informationStoryboards and Controllers on OS X
Frameworks #WWDC14 Storyboards and Controllers on OS X Contain yourself Session 212 Mike Swingler Interface Builder Engineer Raleigh Ledet AppKit Engineer 2014 Apple Inc. All rights reserved. Redistribution
More informationCOSC$4355/6355$ $Introduction$to$Ubiquitous$Computing$ Exercise$3$ September!17,!2015!
COSC4355/6355 IntroductiontoUbiquitousComputing Exercise3 September17,2015 Objective Inthisexercise,youwilllearnhowtowriteunittestsforyourapplicationandalsohowtouse NSUserDefaults.WewillalsoimplementObjectiveCCcategories*welearntlastweek.
More informationsrc3/bettertextfield/bettertextfield/appdelegate.h // AppDelegate.h // BetterTextField
src3/bettertextfield/bettertextfield/appdelegate.h 1 1 1 1 AppDelegate.h BetterTextField Created by Tommy MacWilliam on 3/7/ Copyright (c) 2012 MyCompanyName. All rights reserved. #import
More informationCocoa Tips and Tricks
Cocoa Tips and Tricks Cool Cocoa code Corbin Dunn Cocoa Software Engineer 2 Introduction Quick and cool Cocoa tips and tricks Learn new things you may not know Focused mostly on AppKit classes 3 What You
More informationCisco StadiumVision Mobile API for Apple ios
CHAPTER 1 Revised: March 28, 2013 Introduction to The ios SDK is provided as a set of static libraries, header files, and an a sample ios app (with a complete Xcode project). This API uses Objective-C
More informationQuick Start Guide. Version R93. English
Cloud Backup Quick Start Guide Version R93 English November 15, 2016 Copyright Agreement The purchase and use of all Software and Services is subject to the Agreement as defined in Kaseya s Click-Accept
More informationAcollada ios Charting Components
Acollada ios Charting Components Acollada ios Charting Components... 1 LineChartView... 3 Description... 3 Screenshot... 3 Protocols to be implemented... 3 Customizing the LineChartView aspect... 4 How
More informationCross Platform Nearby Networking
Core OS #WWDC14 Cross Platform Nearby Networking Session 709 Demijan Klinc Software Engineer 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission
More informationWhat s New in Cocoa. App Frameworks #WWDC17. Ali Ozer Daphne Larose
Session App Frameworks #WWDC17 What s New in Cocoa 207 Ali Ozer Daphne Larose 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple.
More informationQuestions. Exams: no. Get by without own Mac? Why ios? ios vs Android restrictions. Selling in App store how hard to publish? Future of Objective-C?
Questions Exams: no Get by without own Mac? Why ios? ios vs Android restrictions Selling in App store how hard to publish? Future of Objective-C? Grading: Lab/homework: 40%, project: 40%, individual report:
More informationProfiling in Depth. Do you know where your code is? Session 412. Kris Markel Performance Tools Engineer Chad Woolf Performance Tools Engineer
Developer Tools #WWDC15 Profiling in Depth Do you know where your code is? Session 412 Kris Markel Performance Tools Engineer Chad Woolf Performance Tools Engineer 2015 Apple Inc. All rights reserved.
More information1) Merge the cells that contain the title and center the title
Supplies: You will need a storage location to save your spreadsheet for use in Session 2. You will need the 2 handouts pertaining to Session 1 Instructions: Follow the directions below to create a budget
More informationResolved Issues. MagiCAD 2018 UR-3 for AutoCAD
Resolved Issues MagiCAD 2018 UR-3 for AutoCAD RESOLVED ISSUES COMMON Authorization information was not written to the IFC model The previous versions of MagiCAD wrote only Author and Organisation information
More informationMake it a Great Day at the Office: Essential Tips and Tricks for Office 2013 and Outlook 2013
Computing Services and Systems Development Make it a Great Day at the Office: Essential Tips and Tricks for Office 2013 and Outlook 2013 Staff Association Council Computing Services and Systems Development
More informationThe MVC Design Pattern
The MVC Design Pattern The structure of iphone applications is based on the Model-View-Controller (MVC) design pattern because it benefits object-oriented programs in several ways. MVC based programs tend
More informationEnhancing your apps for the next dimension of touch
App Frameworks #WWDC16 A Peek at 3D Touch Enhancing your apps for the next dimension of touch Session 228 Tyler Fox UIKit Frameworks Engineer Peter Hajas UIKit Frameworks Engineer 2016 Apple Inc. All rights
More informationMachine Controller MP900/MP2000 Series New Ladder Editor USER'S MANUAL
YASKAWA Machine Controller MP900/MP2000 Series New Ladder Editor USER'S MANUAL YASKAWA MANUAL NO. SIEZ-C887-13.2B Copyright 2001 YASKAWA ELECTRIC CORPORATION All rights reserved. No part of this publication
More informationCocoa: Multiple windows COSC346
Cocoa: Multiple s COSC346 Window controller The behaviour of each is controlled by an NSWindowController object To create a new, create a new class that extends (abstract) NSWindowController When creating
More informationData Management: Data Types & Collections
Property List Programming Guide Data Management: Data Types & Collections 2010-03-24 Apple Inc. 2010 Apple Inc. All rights reserved. No part of this publication may be reproduced, stored in a retrieval
More informationCS193E Lecture #3 Categories and Protocols Cocoa Memory Management
CS193E Lecture #3 Categories and Protocols Cocoa Memory Management Winter 2008, Dempsey/Marcos 1 Today s Topics Questions from Assignment 1A or 1B? Categories Protocols Cocoa Memory Management Object life
More informationBindings Example Exercise James Dempsey - WWDC Pre-Show Cocoa Workshop
Bindings Example Exercise James Dempsey - WWDC Pre-Show Cocoa Workshop In this exercise you will create a basic document-based application using Cocoa Bindings. This application will allow the user to
More informationLab 6A: Customizing the Desktop
Lab 6A: Customizing the Desktop Objectives After completing this lab, you will be able to:!" Configure the Desktop!" Configure desktop properties.!" Customize Start menus.!" Modify the location of My Documents
More informationObjective-C Primer. iphone Programmer s Association. Lorenzo Swank September 10, 2008
Objective-C Primer iphone Programmer s Association Lorenzo Swank September 10, 2008 Disclaimer Content was blatantly and unapologetically stolen from the WWDC 2007 Fundamentals of Cocoa session, as well
More informationITP 342 Mobile App Dev. Fundamentals
ITP 342 Mobile App Dev Fundamentals Object-oriented Programming Object-oriented programming (OOP) is a programming paradigm based on the concept of objects. Classes A class can have attributes & actions
More informationITP 342 Mobile App Dev. Animation
ITP 342 Mobile App Dev Animation Core Animation Introduced in Mac OS X Leopard Uses animatable "layers" built on OpenGL UIKit supports Core Animation out of the box Every UIView has a CALayer behind it
More informationTarget Definition Builder. Software release 4.20
Target Definition Builder Software release 4.20 July 2003 Target Definition Builder Printing History 1 st printing December 21, 2001 2 nd printing May 31, 2002 3 rd printing October 31, 2002 4 th printing
More informationIPHONE DEVELOPMENT. Getting Started with the iphone SDK
IPHONE DEVELOPMENT Getting Started with the iphone SDK OBJECTIVE-C The Big Picture STRICT SUPERSET OF C The Objective C Language Any C stuff applies Standard libs are here (time, sqrt etc) The C Language
More informationRISKMAN REFERENCE GUIDE TO FEEDBACK MANAGEMENT
Introduction This reference guide is aimed at Consumer Advocates or Risk/Quality Managers who are responsible for ensuring Feedback notifications have been followed up by the respective Line Managers,
More informationITP 342 Mobile App Dev. Table Views
ITP 342 Mobile App Dev Table Views Table Views The most common mechanism used to display lists of data to the user Highly configurable objects that can be made to look practically any way you want them
More informationCS 47. Beginning iphone Application Development
CS 47 Beginning iphone Application Development Introductions Who, why, which? Shameless Plug: LoudTap Wifi Access (If it works..) SSID: Stanford Username/password: csp47guest Expectations This is a programming
More informationlecture 6 Closures, Networking, CocoaPods
lecture 6 Closures, Networking, CocoaPods cs198-001 : spring 2018 announcements no new lab this week - continuation of Pokedex lab + custom app workday (attendance still required) Pokedex due Wednesday
More informationMobile Application Programming. Memory Management
Mobile Application Programming Memory Management Memory Management Ownership Model Memory Management in Objective-C is based on an ownership model. Objects may have many owners. Actions that result in
More informationViews, Drawing, and Events. Lecture 5
Views, Drawing, and Events Lecture 5 First - Representing Points and Areas NSPoint // Represents a point in a Cartesian coordinate system. typedef struct _NSPoint { CGFloat x; CGFloat y; } NSPoint Pair
More informationCocoa Programming. David Chisnall. March 18,
March 18, 2010 http://cs.swan.ac.uk/~csdavec/papers/safariwebcast.pdf The Story So Far What is Cocoa? Why Cocoa? GNUstep Overview GNUstep Look and Feel A Brief History of Objective-C 1980: Smalltalk-80
More informationSend Automatic Replies when you're away
Send Automatic Replies when you're away Quick Reference Card Determine your type of mail account You can only use the Automatic Replies feature if you have a mail account on a Microsoft Exchange Server.
More informationAVAudioPlayer. avtouch Application
AVAudioPlayer avtouch Application iphone Application Index 1. iphone Application 1) iphone Application 2) iphone Application Main Method 3) iphone Application nib(.xib) 2. avtouch Application 1) avtouch
More informationTopics in Mobile Computing
Topics in Mobile Computing Workshop 1I - ios Fundamental Prepared by Y.H. KWOK What is ios? From Wikipedia (http://en.wikipedia.org/wiki/ios): ios is an operating system for iphone, ipad and Apple TV.
More informationBuilding a Modern Geocoding Experience in your Applications using Suggestions and Categories. Christa Hash Brad Niemand
Building a Modern Geocoding Experience in your Applications using Suggestions and Categories Christa Hash Brad Niemand Outline What is geocoding? Modernizing the geocoding experience Suggestions Categories
More informationStanford CS193p. Developing Applications for ios Fall Stanford CS193p. Fall 2013
Developing Applications for ios -14 Coming Up Wednesday Alternate Final Presentation. If you are using Alternate Presentation time, submit your Keynote by noon tomorrow (Tuesday). Submit the slides using
More information1 de :02
1 de 6 02-12-2005 18:02!" $%$&&$ ' ( ) ) * +,"* (-)( )(*) ) ). /) %) ( ( -( *)% ) (0 ( " ' * ) *) *)(%* % ) (!%12%! ( ) ( ( )*)3 *) ( *(-)( %. )(( ) *(!() 2 ( (6 &)*7 8 ( 1( -(! ", % ' ( *.() (%) )() (
More informationLab - Remote Desktop in Windows 7 and Vista
Lab - Remote Desktop in Windows 7 and Vista Introduction In this lab, you will remotely connect to another Windows 7 or Vista computer. Recommended Equipment The following equipment is required for this
More informationAdopting Advanced Features of the New UI
Frameworks #WWDC14 Adopting Advanced Features of the New UI Session 220 Chris Dreessen AppKit Software Engineer! Corbin Dunn AppKit Software Engineer 2014 Apple Inc. All rights reserved. Redistribution
More informationAn introduction to Swift. Sasha
An introduction to Swift Sasha Goldshtein @goldshtn Exhibit A + (NSUInteger)indexOfString:(NSString *)str inarray:(nsarray *)arr { return [arr indexofobject:str]; // 1) if 'str' is nil, we return NSNotFound
More informationMANNING IN ACTION SAMPLE CHAPTER. Brendan G. Lim. WITH Jerry Cheung AND Jeremy McAnally
MANNING IN ACTION SAMPLE CHAPTER Bran G. Lim WITH Jerry Cheung AND Jeremy McAnally MacRuby in Action by Bran G. Lim with Jerry Cheung and Jeremy McAnally Chapter 4 Copyright 2012 Manning Publications brief
More informationITP 342 Mobile App Dev. Web View
ITP 342 Mobile App Dev Web View Web View 2 WebKit The WebKit provides a set of core classes to display web content in windows, and by default, implements features such as following links clicked by the
More informationCSCI 251: iphone Application Development
CSCI 251: iphone Application Development Spring Term 2012 Lecture #3: Handling Data (Chater 8) Handling Data (from the Internet) Handling XML (structured data formatted as text) Handling (unformatted)
More informationAdFalcon ios SDK Developer's Guide. AdFalcon Mobile Ad Network Product of Noqoush Mobile Media Group
AdFalcon ios SDK 4.1.0 Developer's Guide AdFalcon Mobile Ad Network Product of Noqoush Mobile Media Group Table of Contents 1 Introduction... 3 Prerequisites... 3 2 Install AdFalcon SDK... 4 2.1 Use CocoaPods
More informationMBS MountainLion Plugin Documentation
MBS MountainLion Plugin Documentation Christian Schmitz July 16, 2017 2 0.1 Introduction This is the PDF version of the documentation for the Xojo (Real Studio) Plug-in from Monkeybread Software Germany.
More informationMastering Drag and Drop
Session App Frameworks #WWDC17 Mastering Drag and Drop 213 Tom Adriaenssen, UIKit Wenson Hsieh, WebKit Robb Böhnke, UIKit 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted
More informationCS193E Lecture 16. Internationalization and Localization
CS193E Lecture 16 Internationalization and Localization Announcements Final Project Due: Wed, March 19th at 11:59 PM Announcements Final Project Demos Thurs, March 20th, 3:30-6:30 Same room Plan for about
More informationUser Interfaces. Lecture 15. Application Programming on Mac OS. Hamza Bennani September 4, 2018
User Interfaces Lecture 15 Application Programming on Mac OS Hamza Bennani hamza@hamzabennani.com September 4, 2018 Logistics Office hours: Tue/Thu, 2pm to 3pm. Office: 250 Geoff Wyvill. Acknowledgment:
More informationJF MSISS. Excel Tutorial 1
JF MSISS Excel 2010 Tutorial 1 In this session you will learn how to: Enter data into a spreadsheet Format data. Enter formulas. Copy formulas. 1. What is a Spreadsheet? A spreadsheet is best thought of
More informationData Management
Core Data Utility Tutorial Data Management 2010-09-19 Apple Inc. 2005, 2010 Apple Inc. All rights reserved. exclusion may not apply to you. This warranty gives you specific legal rights, and you may also
More informationUsing Swift with Cocoa and Objective-C
Using Swift with Cocoa and Objective-C Contents Getting Started 5 Basic Setup 6 Setting Up Your Swift Environment 6 Understanding the Swift Import Process 7 Interoperability 9 Interacting with Objective-C
More informationPeopleSoft Fluid Messages Standard
ORACLE CORPORATION PeopleSoft Fluid Messages Standard Fluid User Experience November 2015 PeopleSoft Fluid Messages Standards Copyright 2015, Oracle and/or its affiliates. All rights reserved. This software
More informationMobile Application Programming. Objective-C Classes
Mobile Application Programming Objective-C Classes Custom Classes @interface Car : NSObject #import Car.h + (int) viper; - (id) initwithmodel:(int)m; @implementation Car Point position; float velocity;
More informationCOPYRIGHTED MATERIAL. part I Developing a Professional UI. Chapter 1: Creating a Personal Library. Chapter 2: Advancing with Tableviews
part I Developing a Professional UI Chapter 1: Creating a Personal Library Chapter 2: Advancing with Tableviews Chapter 3: Advancing with Map Kit Chapter 4: Understanding Action Views and Alerts Chapter
More informationCampus Deskmail. Basics
Campus Deskmail email Basics Table of Contents Start and Exit Campus Deskmail... 2 Logging In... 2 Logging Out... 3 Changing Your Password... 4 Concept Screen/Tabs... 6 Reading email... 6 Reading New email...
More informationDesign Phase. Create a class Person. Determine the superclass. NSObject (in this case)
Design Phase Create a class Person Determine the superclass NSObject (in this case) 8 Design Phase Create a class Person Determine the superclass NSObject (in this case) What properties should it have?
More information