|
Is there any preference to doing:code:
code:
|
# ¿ Mar 15, 2012 19:29 |
|
|
# ¿ May 17, 2024 14:56 |
|
Almost a year ago I setup two provisioning profiles for a simple game I was making. I made a second one because I scrapped the UIKit-based code for an OpenGL setup. Anyway, I finally pulled my iPod Touch out and wanted to work through this Cocos2D book. I want to use it to test programs out, because touch input sucks on the simulator and stuff like the accelerometer doesn't work. Do I have to either A) use the same code+profile for each chapter of the book B) make a new provisioning profile for each chapter? Can't I just use my device to test any random program I write? Do I want to make a wildcard id?
|
# ¿ Apr 1, 2012 23:45 |
|
Doc Block posted:Just make one provisioning profile for everything. Just follow Apple's own HOWTO on the provisioning portal. That ended up working, but I spent about two hours mucking around with old certificates and provisioning profiles and keychains. Now I just need to figure out how to run stuff on an iPod 2G - I've changed the settings to armv6 like the google searches say, but it just says 'finished running testapp on Bob's iPod' and never actually runs. Runs fine on my iPad and iPhone 4 Maybe I'll just sell it and buy a new iPod.
|
# ¿ Apr 2, 2012 13:50 |
|
Why is it so insanely complicated to just make a loving 'Hello World' view that has a UIButton that simply shows another view? Of course, if you choose a tabbed project you have that functionality out of the box, but that's not the point. This poo poo is a CHAPTER in a book.
|
# ¿ Apr 17, 2012 03:06 |
|
Doc Block posted:Assuming you're using a navigation controller, it's not that complicated: Yea I figured it out this morning in five minutes, I just needed a break and I need to get a Xcode 4 book.
|
# ¿ Apr 18, 2012 01:39 |
|
I'm trying to do little iPhone app where you enter a set of 3 (x,y) coordinates, and then you touch the 'draw' button and it creates a new view and draws it on the screen. Easy enough, right? I created a Single-view Applications using Xcode. So it gave me an AppDelegate, ViewController, and Xib file. I put the text fields and buttons and then when you click the button, it loads another Xib file and controller: code:
Here's where I'm stuck since I'm still stuck thinking of this in other languages. How do I get the numbers from the first screen (using [UITextField.text intValue]) to the second one? I tried making properties in the CanvasViewController class but that's where I got stuck. I need to get those variables to the view. I thought I could just do something like [view filesowner].x1 or something. I could probably do this a 'triangle' singleton, right?
|
# ¿ Apr 18, 2012 04:18 |
|
OS X is case-sensitive, but they give you the choice of whether you want the filesystem to be or not. But classic apps aren't compatible with case-senstive filesystems, and lots (most?) of big-name current software isn't either. FileMaker, WoW, Adobe's stuff... Was the iOS team forced to just pick one file system or something? Why would they pick case-insensitive and cause pain for developers?
|
# ¿ Apr 27, 2012 18:44 |
|
Once I had an issue that involved me either formatting my first MBP or an external HD as case-insensitive, then copying over my MP3 collection that was on an NTFS or FAT32 drive to the computer, and I duplicated the majority of the files somehow, so I'd have poo poo like: Justin Bieber - Boyfriend.mp3 Justin Bieber - Boyfriend.MP3 justin bieber - boyfriend.mp3 Justin Bieber - BoyFriend.mp3
|
# ¿ Apr 27, 2012 20:27 |
|
Did the defaults somehow get tweaked so that the window is in a weird space or size? Maybe resize and repoisition the NSWindow on init or something to something you know will work.
|
# ¿ May 10, 2012 01:42 |
|
Has anyone ever used this, or is it as crazy as it seems? http://www.andescotia.com/products/marten/
|
# ¿ Aug 14, 2012 01:33 |
|
What's the closest thing to Turtle Graphics or something on the Mac? Looking for something interactive that I can draw to a window with, preferably in Python or Ruby. Is there a Ruby graphics gem I can use? I want to be able to do something like: CreateWindow 500,500 PlotPixel 10, 10 Circle 50, 50, 25 Line 100, 150 etc
|
# ¿ Mar 6, 2013 14:17 |
|
Does Apple pay developers to have their apps ready for new poo poo like tvOS or whatever the latest iDevice is, like the people who demo their apps at Apple events? Or is it more like "you're lucky we're giving you access to this" and it's just part of the biz to have your poo poo up and running on the latest and greatest?
|
# ¿ Sep 9, 2015 19:25 |
|
I'm trying to make a program that can identify what UI object the mouse is currently over, similar to this demo from Apple https://developer.apple.com/library/archive/samplecode/UIElementInspector/Introduction/Intro.html (AppDelegate.m, the method updateCurrentUIElement is what I was working off of) However, my program doesn't seem to work. It outputs this: code:
kAXErrorFailure = -25200 kAXErrorCannotComplete = -25204 Specifically, this line doesn't appear to be copying the element to the elementUnderCursor variable code:
Here's the whole program: https://pastebin.com/QrdpAkiR
|
# ¿ Aug 9, 2018 04:10 |
|
Bob Morales posted:The errors are: Welp, fixed it. My project was sandboxed by default. Works as expected now. 2018-08-11 19:37:21.647256-0400 MouseTracker[9731:4462376] <AXUIElement 0x600000444fe0> {pid=340} 2018-08-11 19:37:22.646985-0400 MouseTracker[9731:4462376] Accessibility Code: 0 2018-08-11 19:37:22.647085-0400 MouseTracker[9731:4462376] <AXUIElement 0x600000444f80> {pid=332} 2018-08-11 19:37:23.151946-0400 MouseTracker[9731:4462376] Accessibility Code: 0
|
# ¿ Aug 12, 2018 00:39 |
|
I got my 'Poverty Hyperdock' proof of concept working...basically just wanted previews of what windows each app had open (Like Windows Aero Peek) Need to add: Showing more than 1 window if that's what the app has open Click a window's preview to bring it to the front
|
# ¿ Aug 26, 2018 04:34 |
|
What are the requirements for being able to view the JavaScript console on a connected iDevice? I tried an iPhone 6S and 8+ (Both lates iOS), two cables, everything works on my Mojave 15” but neither work on my 2009 Mini running El Cap. The device shows in the safari develop menu but goes away befor you can use it.
|
# ¿ Nov 11, 2018 22:23 |
|
I spent some time trying to figure out some of my old code, and I found two versions of a project, one is a bit newer. I'm guessing converting CGImageRef to NSImage is less efficient but if it's the better way to do it for some reason, I'm all ears. Which is the more efficient way of drawing an image? They're rendering pop-up thumbnails of a sort. code:
code:
|
# ¿ Jun 19, 2019 01:42 |
|
|
# ¿ May 17, 2024 14:56 |
|
I created this mapview deal, and then I want to do a thumbnail view up above. Do I have the mapview update the controller (that handles the zoom slider) and then have the controller relay that back to the thumbnail view? (coordinates of current view, size of the mapview, and the current zoom factor so it can generate a colored box the size of the current 'view') It's not really a thumbnail but an indicator of where the current view is on the grand scheme of however large the map coordinates could be. But anyway. That just seems...kind of goofy. Maybe I should just have the mapview draw the thumbnail opaquely in the corner of itself. It'd be simpler. But then what am I going to do when I allow the user to select walls/things, and need to show the texture and other info related to that object? Would I have a property of the mapview with the ID of the currently selected object, and then just highlight that in another window that has all the textures? Something like [[self superview] updateToolsWindow]? I do like one Cocoa project every 3 years and can never remember the best ways to link up different views.
|
# ¿ May 1, 2020 01:09 |