¡@

Home 

2014/10/15 ¤U¤È 10:14:19

iphone Programming Glossary: source

How can I upload a photo to a server with the iPhone?

http://stackoverflow.com/questions/125306/how-can-i-upload-a-photo-to-a-server-with-the-iphone

if data data length 0 return nil zlib compress doc says destSize must be 1 12 bytes greater than source. uLong destSize data length 1.001 12 NSMutableData destData NSMutableData dataWithLength destSize int..

Add UIPickerView & a Button in Action sheet - How?

http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how

back to the parent controller. In SimpleTableViewController.m implement the tableview data source and delegate methods calling itemSelectedatRow in tableView didSelectRowAtIndexPath . This approach..

How to get the RGB values for a pixel on an image on the iphone

http://stackoverflow.com/questions/144250/how-to-get-the-rgb-values-for-a-pixel-on-an-image-on-the-iphone

colorSpace return nil Create the bitmap context. Pre multiplied RGBA 8 bits per component. The source image format will be converted to the format specified here by CGBitmapContextCreate. self setContext..

How do I associate file types with an iPhone application?

http://stackoverflow.com/questions/2774343/how-do-i-associate-file-types-with-an-iphone-application

of these documents to your own application. For example my application Molecules for which the source code is available handles the .pdb and .pdb.gz file types if received via email or in another supported..

Can I embed a custom font in an iPhone application?

http://stackoverflow.com/questions/360751/can-i-embed-a-custom-font-in-an-iphone-application

size experiment I downloaded Harrowprint.tff downloaded from here and added it to my Resources directory and to the project. I then tried this code UIFont font UIFont fontWithName @ Harrowprint.. I created a simple module that extends UILabel and handles loading .ttf files. I released it opensource under the Apache license and put it on github here git github.com zynga FontLabel.git The important..

display image from URL retrieved from ALAsset in iPhone

http://stackoverflow.com/questions/3837115/display-image-from-url-retrieved-from-alasset-in-iphone

the ALAsset object via the URL. so from the docs for ALAssetLibrary throw this in a header or your source typedef void ^ALAssetsLibraryAssetForURLResultBlock ALAsset asset typedef void ^ALAssetsLibraryAccessFailureBlock.. NSError error which isnt strictly needed but keeps things pretty. and then in your source. void findLargeImage NSString mediaurl self.node valueForKey kVMMediaURL ALAssetsLibraryAssetForURLResultBlock..

parsing HTML on the iPhone [closed]

http://stackoverflow.com/questions/405749/parsing-html-on-the-iphone

Search for setting Other Linker Flags Add a new search flag lxml2 From hpple get the following source code files an add them to your project TFpple.h TFpple.m TFppleElement.h TFppleElement.m XPathQuery.h..

What work has been done on cross-platform mobile development? [closed]

http://stackoverflow.com/questions/51988/what-work-has-been-done-on-cross-platform-mobile-development

work has been done on cross platform mobile development closed Have any well documented or open source projects targeted iPhone Blackberry and Android Are there other platforms which are better suited to.. to improve tremendously in the next year or two. Google for HTML5 apps for information and resources. A good introduction to HTML5 is the online book Dive Into HTML5 by Mark Pilgrim . This is a work in..

performSelector may cause a leak because its selector is unknown

http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown

need to make any assumptions about anything. I checked this a year a so ago by looking at the source but don't have a reference right now. Suppression In trying to think of a situation where suppression..

Open source CoverFlow library for iPhone [closed]

http://stackoverflow.com/questions/718984/open-source-coverflow-library-for-iphone

source CoverFlow library for iPhone closed Are there any open source CoverFlow like APIs or libraries available.. source CoverFlow library for iPhone closed Are there any open source CoverFlow like APIs or libraries available for the iPhone I've found one implementation that is licensed.. found one implementation that is licensed per application however I'd much prefer to go the open source route. Also I'm interested in libraries that use only public APIs as using non public APIs might keep..

SplitView like Facebook app on iPhone

http://stackoverflow.com/questions/7775195/splitview-like-facebook-app-on-iphone

question Facebook guys have done brilliant job in the new version of the app. The similar open source code can be found from here JTRevealSidebarDemo It reveals technique behind doing split view for iPhone... JTRevealSidebarDemo It reveals technique behind doing split view for iPhone. Edit Few other open source codes JWSlideMenu DDMenuController PKRevealController ViewDeck ECSlidingViewController MWFSlideNavigationViewController..

URL encode an NSString

http://stackoverflow.com/questions/8088473/url-encode-an-nsstring

NSString urlencode NSMutableString output NSMutableString string const unsigned char source const unsigned char self UTF8String int sourceLen strlen const char source for int i 0 i sourceLen i.. output NSMutableString string const unsigned char source const unsigned char self UTF8String int sourceLen strlen const char source for int i 0 i sourceLen i const unsigned char thisChar source i if thisChar.. const unsigned char source const unsigned char self UTF8String int sourceLen strlen const char source for int i 0 i sourceLen i const unsigned char thisChar source i if thisChar ' ' output appendString..

Is there a barcode recognition framework for iOS?

http://stackoverflow.com/questions/838724/is-there-a-barcode-recognition-framework-for-ios

question Yes we produced the 'Barcodes' application for the iPhone. It can decode QR Codes. The source code is available from the zxing project specifically you want to take a look at the iPhone client and..

Dispelling the UIImage imageNamed: FUD

http://stackoverflow.com/questions/924740/dispelling-the-uiimage-imagenamed-fud

of what is going on. The biggest thing that imageNamed does is decode the image data from the source file which almost always significantly inflates the data size for example a screen sized PNG file might..

How can I upload a photo to a server with the iPhone?

http://stackoverflow.com/questions/125306/how-can-i-upload-a-photo-to-a-server-with-the-iphone

object. Side effects None NSData compress NSData data IN if data data length 0 return nil zlib compress doc says destSize must be 1 12 bytes greater than source. uLong destSize data length 1.001 12 NSMutableData destData NSMutableData dataWithLength destSize int error compress destData mutableBytes destSize data bytes..

Add UIPickerView & a Button in Action sheet - How?

http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how

. This is how we will pass the selection back to the parent controller. In SimpleTableViewController.m implement the tableview data source and delegate methods calling itemSelectedatRow in tableView didSelectRowAtIndexPath . This approach has the added benefit of being fairly reusable. To use import..

How to get the RGB values for a pixel on an image on the iphone

http://stackoverflow.com/questions/144250/how-to-get-the-rgb-values-for-a-pixel-on-an-image-on-the-iphone

bitmap memory. Releasing color space. CGColorSpaceRelease colorSpace return nil Create the bitmap context. Pre multiplied RGBA 8 bits per component. The source image format will be converted to the format specified here by CGBitmapContextCreate. self setContext CGBitmapContextCreate void pixelData self.size.width ..

How do I associate file types with an iPhone application?

http://stackoverflow.com/questions/2774343/how-do-i-associate-file-types-with-an-iphone-application

that uses a document controller can hand off processing of these documents to your own application. For example my application Molecules for which the source code is available handles the .pdb and .pdb.gz file types if received via email or in another supported application. To register support you will need to have something..

Can I embed a custom font in an iPhone application?

http://stackoverflow.com/questions/360751/can-i-embed-a-custom-font-in-an-iphone-application

so I'm looking for a definitive answer. EDIT failed UIFont fontWithName size experiment I downloaded Harrowprint.tff downloaded from here and added it to my Resources directory and to the project. I then tried this code UIFont font UIFont fontWithName @ Harrowprint size 20 which resulted in an exception being thrown. Looking.. you need to support pre 3.2 you can still use this solution. I created a simple module that extends UILabel and handles loading .ttf files. I released it opensource under the Apache license and put it on github here git github.com zynga FontLabel.git The important files are FontLabel.h and FontLabel.m. It uses some of the code..

display image from URL retrieved from ALAsset in iPhone

http://stackoverflow.com/questions/3837115/display-image-from-url-retrieved-from-alasset-in-iphone

ext JPG You use the ALAssetLibrary object to access the ALAsset object via the URL. so from the docs for ALAssetLibrary throw this in a header or your source typedef void ^ALAssetsLibraryAssetForURLResultBlock ALAsset asset typedef void ^ALAssetsLibraryAccessFailureBlock NSError error which isnt strictly needed but keeps.. ALAsset asset typedef void ^ALAssetsLibraryAccessFailureBlock NSError error which isnt strictly needed but keeps things pretty. and then in your source. void findLargeImage NSString mediaurl self.node valueForKey kVMMediaURL ALAssetsLibraryAssetForURLResultBlock resultblock ^ ALAsset myasset ALAssetRepresentation..

parsing HTML on the iPhone [closed]

http://stackoverflow.com/questions/405749/parsing-html-on-the-iphone

library to to your project Menu Project Edit Project Settings Search for setting Other Linker Flags Add a new search flag lxml2 From hpple get the following source code files an add them to your project TFpple.h TFpple.m TFppleElement.h TFppleElement.m XPathQuery.h XPathQuery.m Take a walk on w3school XPath Tutorial to feel..

What work has been done on cross-platform mobile development? [closed]

http://stackoverflow.com/questions/51988/what-work-has-been-done-on-cross-platform-mobile-development

work has been done on cross platform mobile development closed Have any well documented or open source projects targeted iPhone Blackberry and Android Are there other platforms which are better suited to such an endeavor Note that I am particularly asking about client.. The support for this is patchy at the moment but is likely to improve tremendously in the next year or two. Google for HTML5 apps for information and resources. A good introduction to HTML5 is the online book Dive Into HTML5 by Mark Pilgrim . This is a work in progress but sufficiently complete to be useful. share improve..

performSelector may cause a leak because its selector is unknown

http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown

about the selector and the object during compilation. It doesn't need to make any assumptions about anything. I checked this a year a so ago by looking at the source but don't have a reference right now. Suppression In trying to think of a situation where suppression of this warning would be necessary and good code design I'm..

Open source CoverFlow library for iPhone [closed]

http://stackoverflow.com/questions/718984/open-source-coverflow-library-for-iphone

source CoverFlow library for iPhone closed Are there any open source CoverFlow like APIs or libraries available for the iPhone I've found one implementation that is licensed.. source CoverFlow library for iPhone closed Are there any open source CoverFlow like APIs or libraries available for the iPhone I've found one implementation that is licensed per application however I'd much prefer to go the open.. like APIs or libraries available for the iPhone I've found one implementation that is licensed per application however I'd much prefer to go the open source route. Also I'm interested in libraries that use only public APIs as using non public APIs might keep an app from getting published in the App Store. iphone coverflow..

SplitView like Facebook app on iPhone

http://stackoverflow.com/questions/7775195/splitview-like-facebook-app-on-iphone

uisplitviewcontroller tableview share improve this question Facebook guys have done brilliant job in the new version of the app. The similar open source code can be found from here JTRevealSidebarDemo It reveals technique behind doing split view for iPhone. Edit Few other open source codes JWSlideMenu DDMenuController.. the app. The similar open source code can be found from here JTRevealSidebarDemo It reveals technique behind doing split view for iPhone. Edit Few other open source codes JWSlideMenu DDMenuController PKRevealController ViewDeck ECSlidingViewController MWFSlideNavigationViewController MFSideMenu SASlideMenu HHTabListController..

URL encode an NSString

http://stackoverflow.com/questions/8088473/url-encode-an-nsstring

to url encode a string @implementation NSString NSString_Extended NSString urlencode NSMutableString output NSMutableString string const unsigned char source const unsigned char self UTF8String int sourceLen strlen const char source for int i 0 i sourceLen i const unsigned char thisChar source i if thisChar ' ' output.. NSString NSString_Extended NSString urlencode NSMutableString output NSMutableString string const unsigned char source const unsigned char self UTF8String int sourceLen strlen const char source for int i 0 i sourceLen i const unsigned char thisChar source i if thisChar ' ' output appendString @ else if thisChar '.' thisChar.. urlencode NSMutableString output NSMutableString string const unsigned char source const unsigned char self UTF8String int sourceLen strlen const char source for int i 0 i sourceLen i const unsigned char thisChar source i if thisChar ' ' output appendString @ else if thisChar '.' thisChar ' ' thisChar '_' thisChar..

Is there a barcode recognition framework for iOS?

http://stackoverflow.com/questions/838724/is-there-a-barcode-recognition-framework-for-ios

iPad iphone ios cocoa touch barcode share improve this question Yes we produced the 'Barcodes' application for the iPhone. It can decode QR Codes. The source code is available from the zxing project specifically you want to take a look at the iPhone client and the partial C port of the core library . The port is a little..

Dispelling the UIImage imageNamed: FUD

http://stackoverflow.com/questions/924740/dispelling-the-uiimage-imagenamed-fud

that On the speed front there is a general misunderstanding of what is going on. The biggest thing that imageNamed does is decode the image data from the source file which almost always significantly inflates the data size for example a screen sized PNG file might consume a few dozen KBs when compressed but consumes over..

How can I upload a photo to a server with the iPhone?

http://stackoverflow.com/questions/125306/how-can-i-upload-a-photo-to-a-server-with-the-iphone

NSData data IN if data data length 0 return nil zlib compress doc says destSize must be 1 12 bytes greater than source. uLong destSize data length 1.001 12 NSMutableData destData NSMutableData dataWithLength destSize int error compress destData..

Add UIPickerView & a Button in Action sheet - How?

http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how

we will pass the selection back to the parent controller. In SimpleTableViewController.m implement the tableview data source and delegate methods calling itemSelectedatRow in tableView didSelectRowAtIndexPath . This approach has the added benefit..

How to get the RGB values for a pixel on an image on the iphone

http://stackoverflow.com/questions/144250/how-to-get-the-rgb-values-for-a-pixel-on-an-image-on-the-iphone

CGColorSpaceRelease colorSpace return nil Create the bitmap context. Pre multiplied RGBA 8 bits per component. The source image format will be converted to the format specified here by CGBitmapContextCreate. self setContext CGBitmapContextCreate..

How do I associate file types with an iPhone application?

http://stackoverflow.com/questions/2774343/how-do-i-associate-file-types-with-an-iphone-application

can hand off processing of these documents to your own application. For example my application Molecules for which the source code is available handles the .pdb and .pdb.gz file types if received via email or in another supported application. To..

Can I embed a custom font in an iPhone application?

http://stackoverflow.com/questions/360751/can-i-embed-a-custom-font-in-an-iphone-application

EDIT failed UIFont fontWithName size experiment I downloaded Harrowprint.tff downloaded from here and added it to my Resources directory and to the project. I then tried this code UIFont font UIFont fontWithName @ Harrowprint size 20 which resulted.. use this solution. I created a simple module that extends UILabel and handles loading .ttf files. I released it opensource under the Apache license and put it on github here git github.com zynga FontLabel.git The important files are FontLabel.h..

display image from URL retrieved from ALAsset in iPhone

http://stackoverflow.com/questions/3837115/display-image-from-url-retrieved-from-alasset-in-iphone

object to access the ALAsset object via the URL. so from the docs for ALAssetLibrary throw this in a header or your source typedef void ^ALAssetsLibraryAssetForURLResultBlock ALAsset asset typedef void ^ALAssetsLibraryAccessFailureBlock NSError.. ^ALAssetsLibraryAccessFailureBlock NSError error which isnt strictly needed but keeps things pretty. and then in your source. void findLargeImage NSString mediaurl self.node valueForKey kVMMediaURL ALAssetsLibraryAssetForURLResultBlock resultblock..

parsing HTML on the iPhone [closed]

http://stackoverflow.com/questions/405749/parsing-html-on-the-iphone

Edit Project Settings Search for setting Other Linker Flags Add a new search flag lxml2 From hpple get the following source code files an add them to your project TFpple.h TFpple.m TFppleElement.h TFppleElement.m XPathQuery.h XPathQuery.m Take..

What work has been done on cross-platform mobile development? [closed]

http://stackoverflow.com/questions/51988/what-work-has-been-done-on-cross-platform-mobile-development

work has been done on cross platform mobile development closed Have any well documented or open source projects targeted iPhone Blackberry and Android Are there other platforms which are better suited to such an endeavor Note.. the moment but is likely to improve tremendously in the next year or two. Google for HTML5 apps for information and resources. A good introduction to HTML5 is the online book Dive Into HTML5 by Mark Pilgrim . This is a work in progress but sufficiently..

performSelector may cause a leak because its selector is unknown

http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown

compilation. It doesn't need to make any assumptions about anything. I checked this a year a so ago by looking at the source but don't have a reference right now. Suppression In trying to think of a situation where suppression of this warning would..

Open source CoverFlow library for iPhone [closed]

http://stackoverflow.com/questions/718984/open-source-coverflow-library-for-iphone

source CoverFlow library for iPhone closed Are there any open source CoverFlow like APIs or libraries available for the iPhone.. source CoverFlow library for iPhone closed Are there any open source CoverFlow like APIs or libraries available for the iPhone I've found one implementation that is licensed per application.. for the iPhone I've found one implementation that is licensed per application however I'd much prefer to go the open source route. Also I'm interested in libraries that use only public APIs as using non public APIs might keep an app from getting..

SplitView like Facebook app on iPhone

http://stackoverflow.com/questions/7775195/splitview-like-facebook-app-on-iphone

share improve this question Facebook guys have done brilliant job in the new version of the app. The similar open source code can be found from here JTRevealSidebarDemo It reveals technique behind doing split view for iPhone. Edit Few other.. be found from here JTRevealSidebarDemo It reveals technique behind doing split view for iPhone. Edit Few other open source codes JWSlideMenu DDMenuController PKRevealController ViewDeck ECSlidingViewController MWFSlideNavigationViewController..

URL encode an NSString

http://stackoverflow.com/questions/8088473/url-encode-an-nsstring

NSString NSString_Extended NSString urlencode NSMutableString output NSMutableString string const unsigned char source const unsigned char self UTF8String int sourceLen strlen const char source for int i 0 i sourceLen i const unsigned char.. NSMutableString output NSMutableString string const unsigned char source const unsigned char self UTF8String int sourceLen strlen const char source for int i 0 i sourceLen i const unsigned char thisChar source i if thisChar ' ' output appendString.. NSMutableString string const unsigned char source const unsigned char self UTF8String int sourceLen strlen const char source for int i 0 i sourceLen i const unsigned char thisChar source i if thisChar ' ' output appendString @ else if thisChar..

Is there a barcode recognition framework for iOS?

http://stackoverflow.com/questions/838724/is-there-a-barcode-recognition-framework-for-ios

share improve this question Yes we produced the 'Barcodes' application for the iPhone. It can decode QR Codes. The source code is available from the zxing project specifically you want to take a look at the iPhone client and the partial C port..

Dispelling the UIImage imageNamed: FUD

http://stackoverflow.com/questions/924740/dispelling-the-uiimage-imagenamed-fud

general misunderstanding of what is going on. The biggest thing that imageNamed does is decode the image data from the source file which almost always significantly inflates the data size for example a screen sized PNG file might consume a few dozen..

Open a facebook link by native Facebook app on iOS

http://stackoverflow.com/questions/10416338/open-a-facebook-link-by-native-facebook-app-on-ios

Thumbnail view of images

http://stackoverflow.com/questions/1215869/thumbnail-view-of-images

the app icons used on the home screen. Added Using an image's built in thumbnail There's a nice function called CGImageSourceCreateThumbnailAtIndex that understands built in thumbnails in certain image data formats. You can see some useful sample..

Debugging App When Launched by Push Notification

http://stackoverflow.com/questions/1239000/debugging-app-when-launched-by-push-notification

on the launch state of your application such as URL schemes pasteboards and push notifications. In Xcode look in the Source bar and below Targets there will be Executables. Bring up the inspector for your app in executables. Click on the Debugging..

Send mail without MFMailComposeViewController

http://stackoverflow.com/questions/1263412/send-mail-without-mfmailcomposeviewcontroller

AdMob crashes with [GADObjectPrivate changeState:]: unrecognized selector

http://stackoverflow.com/questions/12635283/admob-crashes-with-gadobjectprivate-changestate-unrecognized-selector

icon in XCode Choose your target and go to Build Settings Under Other Linker Flags add ObjC for both Release and Debug Source https developers.google.com mobile ads sdk docs admob mediation#ios linker Also be sure to do a clean and rebuild share..

J2ME VS Android VS iPhone VS Symbian VS Windows CE [closed]

http://stackoverflow.com/questions/1414288/j2me-vs-android-vs-iphone-vs-symbian-vs-windows-ce

just like normal applications or through market You need a Windows PC to develop proprietary Android Java Open Source through Android Market 25 one time fees or like normal applications The platform is completely open source iPhone Objective..

How to use custom fonts in iPhone SDK? [duplicate]

http://stackoverflow.com/questions/14376941/how-to-use-custom-fonts-in-iphone-sdk

fonts in iPhone SDK 2 answers I Want to implement custom font in my app. So i have added that in my Project Source code. I don't want to set that programatically. Is this possible that I can do this with setting properties in xib iphone..

iOS: Open Source VoIP/SIP Objective-C Code

http://stackoverflow.com/questions/1493050/ios-open-source-voip-sip-objective-c-code

Open Source VoIP SIP Objective C Code I have been tasked with investigating the feasibility of writing an iPhone App to access our..

Limit of localstorage on iPhone?

http://stackoverflow.com/questions/1921048/limit-of-localstorage-on-iphone

Implementation of “Automatic Lightweight Migration” for Core Data (iPhone)

http://stackoverflow.com/questions/2310216/implementation-of-automatic-lightweight-migration-for-core-data-iphone

core data data migration share improve this question This is what I did to make Automatic Lightweight Migration Source http brainwashinc.wordpress.com 2010 01 18 iphone coredata automatic light migration 1. Set the Persistent Store options..

Creating a “chat bubble” on the iPhone, like Tweetie

http://stackoverflow.com/questions/351602/creating-a-chat-bubble-on-the-iphone-like-tweetie

. You can see how they code a reusable control for it as well as example images for creating your own bubble. Edit Source is no longer available NDA possibly I put the image up here . You should be able to figure out the rest share improve..

What happens to JavaScript code after app is compiled using Titanium Mobile

http://stackoverflow.com/questions/4217551/what-happens-to-javascript-code-after-app-is-compiled-using-titanium-mobile

What we actually do with your javascript source is dependent on the platform but generally it breaks up like this Source is statically analyzed to find references to Titanium modules Localization strings strings.xml App metadata tiapp.xml and.. density specific images all generate platform specific analogs. In iOS An XCode project configuration is generated JS Source is base64'd and inlined as a variable into a generated C file xcodebuild is used to generate the final binaries provisioning..

How to use GData in iphone?

http://stackoverflow.com/questions/4543582/how-to-use-gdata-in-iphone

GData XCode Project from your downloaded folder as well as your iPhone App XCode project. Step 3 Drag over the GData Sources Folder from the GData project to your iPhone App project and add it as reference don't check the box for Copy items into.. Located and set the following settings. Header Search Paths usr include libxml2 .. gdata objectivec client 1.9.1 Source Other Linker Flags lxml2 ObjC For the Debug build configuration only add the Other C Flags setting so that the library ™s..

How to steal touches from UIScrollView?

http://stackoverflow.com/questions/4629499/how-to-steal-touches-from-uiscrollview

Beginner guide to OpenGLES on iPhone

http://stackoverflow.com/questions/693613/beginner-guide-to-opengles-on-iphone

Open Source Cocoa/Cocoa-Touch POP3/SMTP library?

http://stackoverflow.com/questions/740939/open-source-cocoa-cocoa-touch-pop3-smtp-library

Source Cocoa Cocoa Touch POP3 SMTP library I'm looking to write a sample application speaking to a POP3 SMTP server. Instead of..

iOS crash log catch, debug info.. Catch and send via email to the Dev team

http://stackoverflow.com/questions/8233388/ios-crash-log-catch-debug-info-catch-and-send-via-email-to-the-dev-team

the crash happens in your code including line numbers. Some solutions based on PLCrashReporter are QuincyKit Open Source client php server basic crash grouping symbolication can be automated from your mac I am the developer of this HockeyApp..

iPhone UIWebView local resources using Javascript and handling onorientationChange

http://stackoverflow.com/questions/843820/iphone-uiwebview-local-resources-using-javascript-and-handling-onorientationchan

Basically Xcode thinks that the script should somehow be run or compiles so marks it as part of the source code. Source code of course is not copied into the resources. So you need to do two things select the .js file in your project and turn..