iOS Development is easy with XCode, Swift3, UITableView, cocatouch, let's build iPhone, iPad and Macbook Applications.

How To Save PNG file From NSImage (retina issues) The Right Way?

I am trying to save each image in an array as a .PNG file (also as the right size, without scaling up because of retina mac dpi issues) and can’t seem to find a solution. NONE of the solutions at How to save PNG file from NSImage (retina issues) seem to be working for me. […]

Developing and Debugging KEXT on mac

I’m developing a KEXT on mac using Xcode, After every compile I’m changing permissions through terminal and load the KEXT, then reading results from console app. Some of the mistakes in development giving system a kernel panic and I have to restart my mac, this is so annoying. I was wondering if there is a […]

Changing icon of package created by package maker

I have created package (.pkg) file using packagemaker ver 3.0.4. Is it possible to provide custom icon to the .pkg file. Can some one help me how this can be done ? Thanks in advance.

Connect UITableView DataSource/Delegate to base UIViewController class

I’m attempting to connect my UITableView’s DataSource and Delegate to my ViewController’s base class via the storyboard. I Was able to connect my IBActions and IBOutlets easily, but this is proving trickier. Is the correct method to instantiate the delegate/datasource methods then call the same methods on super? TIA

cocoa:I want to know the location of the status bar icon on the screen

I want to know the location of the status bar icon on the screen -(void)awakeFromNib{ statusItem = [[[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength] retain]; NSBundle *bundle = [NSBundle mainBundle]; statusImage = [[NSImage alloc] initWithContentsOfFile:[bundle pathForResource:@”r” ofType:@”png”]]; statusHighlightImage = [[NSImage alloc] initWithContentsOfFile:[bundle pathForResource:@”rh” ofType:@”png”]]; [statusItem setImage:statusImage]; [statusItem setAlternateImage:statusHighlightImage]; [statusItem setTitle:@”APP”]; [statusItem setToolTip:@”You do not need this…”]; [statusItem setHighlightMode:YES]; NSRect […]

Freeze last frame of animation new code?

I’m trying to freeze the last frame of an animation. The following code used to work, however after an update to iOS it no longer works. How can I write this code so that the last image stays on the screen? animation.animationImages = [NSArray arrayWithObjects: [UIImage imageNamed:@”watermelondrop2.png”], [UIImage imageNamed:@”watermelondrop4.png”], [UIImage imageNamed:@”watermelondrop6.png”], [UIImage imageNamed:@”watermelondrop8.png”], [UIImage imageNamed:@”watermelondrop10.png”], […]

Image on UIbutton visible on simulator but lost on device

I have made an application which includes movie player in it. Video starts playing on touching PLAY button. I have set an image “Play.png” on button and while running on simulator Image shows up but on device image does not show up.. Well I checked application on iOS 4.3 simulator and installed it on device […]

Compile libtiff for iOS project to include 64bit architecture

I have an iOS app updated to the latest SDK8.3 and I am using the latest version of Xcode. My app uses libtiff to convert an image (in PNG format) to TIFF format. The problem I have is that I need to submit a new revision to the App Store and needs to incorporate 64 […]

How to get device descriptor and configuration descriptor of usb device in Mac?

I have minimum exposure to xcode and I/Okit framework. I have seen device descriptor and configuration descriptor of a usb device in USB prober. I have written an xcode program using I/O kit framework which gives the usb device name as output, when we give product id and vendor id of that device as input. […]

Show Icons for Custom UTIs in UIDocumentPickerViewController

The iOS app I’m working on exports a UTI. The relevant parts of the Info.plist look like this: <key>UTExportedTypeDeclarations</key> <array> <dict> <key>UTTypeConformsTo</key> <array> <string>public.xml</string> <string></string> </array> <key>UTTypeDescription</key> <string>GPX Document</string> <key>UTTypeIdentifier</key> <string></string> <key>UTTypeSize320IconFile</key> <string>Doc320.png</string> <key>UTTypeSize64IconFile</key> <string>Doc64.png</string> <key>UTTypeTagSpecification</key> <dict> <key>public.filename-extension</key> <array> <string>gpx</string> </array> </dict> </dict> </array> I want the app to handle GPX files via “Open in…” […]