UIView rotate and cross-fade at the same time

2015-10-06 Thread Eric E. Dolecki
I have a UIView with a UIImageView in it, a button on top of that. I want to trigger a rotation with an image cross-fade* at the same time*. This isn't working for me. Is there a better solution? @IBAction func newMagicPressed(sender: UIButton) { if bMagicButtonCloseMode { le

Custom UIView receiving no touch events?

2015-10-06 Thread Eric E. Dolecki
I have a Storyboard - UIView with view controller - simple UITableView in it wth some UIScrollViews in cells. Works great. Off-screen I have a custom UIView that has a UIScrollView in it. Upon a button press, I animate it over the main view. It receives no events - the UIScrollView in the top view

Swift: Trying to use ViewController(). to access object

2015-10-19 Thread Eric E. Dolecki
I have been using NSNotificationCenter to affect objects in other classes to good effect. However, is it possible to do something like this: *ViewController().someObject.hidden = true* When I compile and run, I get a EXC_BAD_INSTRUCTION at that line. *fatal error: unexpectedly found nil while un

Re: Swift: Trying to use ViewController(). to access object

2015-10-19 Thread Eric E. Dolecki
, but which works. On Mon, Oct 19, 2015 at 3:38 PM Jens Alfke wrote: > > On Oct 19, 2015, at 11:12 AM, Eric E. Dolecki wrote: > > I have been using NSNotificationCenter to affect objects in other classes > to good effect. > > > I don’t understand … that class is used

Swift charting

2015-10-26 Thread Eric E. Dolecki
[image: chart.gif] Hey all, I am looking for a bar chart system written in Swift with a feature I haven't seen yet. You can add value filters - say three of them. High, medium, low. And the bars go up and would change color at the boundary. Anyone know of anything? I just started here. Thanks, E

Introduction animations

2015-10-30 Thread Eric E. Dolecki
I'm not sure what to call this - but many apps have a welcome/introduction where you can swipe and the animations are based on the position of the swipe. Yahoo! weather does this as you scroll down through the content for a location. Does anyone have any sample code for rolling one of these? Even

Re: Multiple simultaneous UIAlertControllers

2015-11-05 Thread Eric E Dolecki
That's the way. You should never need more than one presented at a time. Sent from my iP6+ > On Nov 5, 2015, at 5:44 PM, Tomasz Muszyński wrote: > > You should present next UIAlertController when first one has been dismissed > (when UIAlertAction handler is called). > > Tomek > >> Wiadomość

Animation along a curve w/scale & alpha & orientation

2015-11-19 Thread Eric E. Dolecki
[image: sheep.png]Greetings. I am looking to animate images along a path, that orient to the path, and scale up at the top of the path, fade in at one side, full alpha at top, and then fade out. I am able to animate along a CAKeyframeAnimation path, not sure about an event when each sheep is at th

Re: Animation along a curve w/scale & alpha & orientation

2015-11-20 Thread Eric E. Dolecki
imationRotateAuto on the KeyframeAnimation > > If you can translate the values along the path to angles, you can apply > affine rotate transform to the image to orient it to the path. Alpha value > might be a function of angle too. > > Regards, > Puneet > > > On Thursda

Question about getBytes:length:

2015-11-23 Thread Eric E. Dolecki
I have a bit of old code someone else wrote. I get warnings since getBytes is deprecated since iOS 8. I don't know enough about this but would like to use the *getBytes:length:* to turn them off. How would I get a length from something like this? This is part of code I've bridged into a Swift proje

Re: Question about getBytes:length:

2015-11-23 Thread Eric E. Dolecki
psulated in the object." > > From: cocoa-dev-bounces+lrucker=vmware@lists.apple.com > [cocoa-dev-bounces+lrucker=vmware....@lists.apple.com] on behalf of Eric > E. Dolecki [edole...@gmail.com] > Sent: Monday, November 23, 2015 7:55 PM

Re: Question about getBytes:length:

2015-11-23 Thread Eric E. Dolecki
That method is not my code so I can't speak to it. It's from a github example from a company supplying BT shields for Arduino. On Mon, Nov 23, 2015 at 11:57 PM Charles Srstka wrote: > On Nov 23, 2015, at 9:55 PM, Eric E. Dolecki wrote: > > -(int) compareCBUUIDToInt:(C

Adding minutes to display time

2015-12-08 Thread Eric E. Dolecki
Hey all, I am being supplied a time (not day specific). Say "7:30 AM" - as a string. Could be PM. I need to make a slider with a range of 1 minute to 120 mins. Moving the slider adjusts the 7:30 AM display. So I am adding minutes to the display time. What's the best way to do this? I am using Swi

Re: Adding minutes to display time

2015-12-08 Thread Eric E. Dolecki
= calendar.dateByAddingUnit(.Minute, value: 5, toDate: startDate, options: []) *print (date!) //This is way off. How to fix this?* On Tue, Dec 8, 2015 at 3:54 PM David Duncan wrote: > > > On Dec 8, 2015, at 12:14 PM, Eric E. Dolecki wrote: > > > > Hey all, > >

Re: Adding minutes to display time

2015-12-08 Thread Eric E. Dolecki
vid Duncan wrote: > On Dec 8, 2015, at 2:04 PM, Eric E. Dolecki wrote: > > I tried an extension I found. It's off by 5 hours... > > extension NSDate > { > convenience > init(dateString:String) { > let dateStringFormatter = NSDateFormatter(

Custom UIView delegate - .ValueChanged?

2015-12-09 Thread Eric E. Dolecki
I have a custom UIView and I would like to hook it up to .ValueChanged just like with sliders, etc. Is there a bit of sample code in how to wire such a custom delegate up? Thanks, Eric ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do n

RSSI is deprecated since iOS 8...

2015-12-10 Thread Eric E. Dolecki
I have BLE source code that now displays warnings. I don’t know much about BLE. I offer the code below. I tried replacing with readRSSI but tells me I can’t compare an Int with Void. How do I get an Int value for readRSSI? Basically I’d like to rewrite this one method so it’s compliant. - (void)pe

Custom font for UIAlertAction

2015-12-15 Thread Eric E. Dolecki
I am hoping to change the font for the buttons in a UIAlertController (not the color, just the face as the styles give me what I want). It doesn’t appear I can use an attributedString (takes String) - is there any action I can take to achieve this besides subclassing? Eric

Re: Custom font for UIAlertAction

2015-12-15 Thread Eric E. Dolecki
subviews > and check for a UILabel and set the font on it. It's hacky but I don't > think there's another way > >>> > >>> Do NOT do things like this. The view hierarchy is considered private > and the results of any changes you make are not guaranteed

Re: Custom font for UIAlertAction

2015-12-15 Thread Eric E. Dolecki
; >> >> >>> >> >>>> On Dec 15, 2015, at 8:53 AM, Wojciech Czekalski >> wrote: >> >>>> >> >>>> Yes, you can recursively iterate through the alert view's subviews >> and check for a UILabel and set the font on it. It&#x

Settings.bundle settings disappear while running

2015-12-21 Thread Eric E. Dolecki
Working on an application with some App settings in the Settings.bundle. They do not appear when running the application in debug - but if I quite the app and launch the app settings from Settings.app they display. Is there a trick to get them to be avalable while running the application? There is

Return from a background queue

2015-12-22 Thread Eric E. Dolecki
I am trying to return a dictionary from a method that uses a queue. I'm not sure how to actually return though as I get an error (can't convert value of type '() -> Dictionary' to expected argument type 'dispatch_block_t'. I've tried a number of things but none prevent an error somewhere. I could d

enum as String

2016-01-11 Thread Eric E. Dolecki
I have the following enum *enum SomeMode: String {* *case ComputeRequired* *case Calculating* *case Normal* *case ComputeUnavailable* *}* Works great if access like so: *SomeMode.Calculating.rawValue* 1. How can I get rid of that .rawValue? It works but not coder-friendly.

Re: enum as String

2016-01-11 Thread Eric E. Dolecki
On Mon, Jan 11, 2016 at 12:21 PM Jens Alfke wrote: > > On Jan 11, 2016, at 7:37 AM, Eric E. Dolecki wrote: > > 1. How can I get rid of that .rawValue? It works but not coder-friendly. > > > In Swift one usually uses a switch statement to match enums, rather than > com

Re: OT: Swift Code Autoformatter?

2016-01-14 Thread Eric E Dolecki
The compiler barks when you try things like that. You are your best code formatter :) Sent from my iP6+ > On Jan 14, 2016, at 8:15 PM, Graham Cox wrote: > > >> On 15 Jan 2016, at 7:57 AM, Quincey Morris >> wrote: >> >> To clarify for lurkers, Swift requires a space after the “/“ in “numera

Image from UIView - text jagged...

2016-01-20 Thread Eric E. Dolecki
I am creating images from what I'll call chart cells - so that when in a scroll pane scrolling is smooth. Currently it's not. So I use the following method and load each into a UIImageView. Works great except the text in the screens looks jagged. NO scaling is happening. Is there anything beyond ma

Re: Image from UIView - text jagged...

2016-01-20 Thread Eric E. Dolecki
Wed, Jan 20, 2016 at 11:23 AM -0800, "Ryan Dignard" < > conceptuallyfla...@gmail.com> wrote: > > Have you tried `UIGraphicsBeginImageContextWithOptions(item.bounds.size, >> NO, 0.0)` ? I've never had problems with the implicit scale provided by >> the last

Array of Dictionaries as .userInfo

2016-01-26 Thread Eric E. Dolecki
I have a control which takes an array of dictionaries to construct it's UI (as a distinct method). Now I'd like to add a notification to supply the data as well. I'd like to pass the data as userInfo. When constructing the observer method, how do I constuct? func weHaveData(notification:NSNotici

Re: Array of Dictionaries as .userInfo

2016-01-26 Thread Eric E. Dolecki
That makes perfect sense - thanks. I forgot about the userInfo type! On Tue, Jan 26, 2016 at 10:31 AM Roland King wrote: > > > On 26 Jan 2016, at 23:12, Eric E. Dolecki wrote: > > > > I have a control which takes an array of dictionaries to construct it's >

Re: Array of Dictionaries as .userInfo

2016-01-26 Thread Eric E. Dolecki
; notification itself). It helps to have a strictly defined path that your > data can follow; if it’s in an NSNotification, it could potentially have > come from *anywhere* > > -- > Clark Smith Cox III > clarkc...@gmail.com > > > On Jan 26, 2016, at 07:12, Eric

Re: Array of Dictionaries as .userInfo

2016-01-26 Thread Eric E. Dolecki
ly have > come from *anywhere* > > > > -- > > Clark Smith Cox III > > clarkc...@gmail.com > > > >> On Jan 26, 2016, at 07:12, Eric E. Dolecki wrote: > >> > >> I have a control which takes an array of dictionaries to construct it's >

Breakpoints: Swift Error

2016-02-19 Thread Eric E. Dolecki
I have an app where I have a breakpoint set for Swift Error. If it's on and I run the debug app, I get the breakpoint for a crash. try player = AVAudioPlayer(contentsOfURL: url) The url is fine. If I turn the breakpoint off, it runs and debugs perfectly fine. Could this be a bug in Xcode? Is ther

Re: Breakpoints: Swift Error

2016-02-19 Thread Eric E. Dolecki
ri, Feb 19, 2016 at 2:08 PM Quincey Morris < quinceymor...@rivergatesoftware.com> wrote: > On Feb 19, 2016, at 10:45 , Eric E. Dolecki wrote: > > > I have an app where I have a breakpoint set for Swift Error. If it's on and > I run the debug app, I get the br

Re: Customizing a UISwitch?

2016-03-04 Thread Eric E. Dolecki
Are you doing this for the proper state? I.e. Normal ? On Fri, Mar 4, 2016 at 6:41 PM Carl Hoefs wrote: > I replaced the UISwitch with a UIButton. But when I set the button's new > image in the event method (myButton.imageView.image = ...), still nothing > happens (the button's image doesn't redr

Re: Customizing a UISwitch?

2016-03-04 Thread Eric E. Dolecki
What Gary said ;) On Fri, Mar 4, 2016 at 6:56 PM Gary L. Wade wrote: > Look instead at the set…:forState: methods. > -- > Gary L. Wade (Sent from my iPhone) > http://www.garywade.com/ > > > On Mar 4, 2016, at 3:40 PM, Carl Hoefs > wrote: > > > > I replaced the UISwitch with a UIButton. But when

Re: Apple Bug no response

2016-03-09 Thread Eric E Dolecki
I have bugs that have celebrated their fifth birthdays. Fire and forget. Sent from my iP6+ > On Mar 9, 2016, at 3:44 PM, Hunter Hillegas wrote: > > You must be new here. ;-) > > You might get an automated email when a future build is available asking you > to re-test. You may get a note that

Multiple AVAudioPlayer - locking main thread?

2016-03-18 Thread Eric E. Dolecki
I have audio buttons, each with it's own associated AVAudioPlayer. I am performing the prepareToPlay for each on a background thread (probably does anyway, but I am making sure). When I play one, I am playing it on a background thread. Things work fine, I get a few playing on top of one another. An

#selector noob question

2016-03-21 Thread Eric E. Dolecki
Quick question. If I use #selector(funcName) - does it always send an argument of the obj if the func requests it or not? If the function being called has a typed argument of something like sender:UIButton, I can reference the sender in the func. Before with a string we could add the ":" to inform

Re: #selector noob question

2016-03-22 Thread Eric E. Dolecki
wer! > On Mon, Mar 21, 2016 at 11:34 PM Quincey Morris < > quinceymor...@rivergatesoftware.com> wrote: > >> On Mar 21, 2016, at 20:27 , Eric E. Dolecki wrote: >> > >> > Quick question. If I use #selector(funcName) - does it always send an >> >

Re: #selector noob question

2016-03-22 Thread Eric E. Dolecki
t.selected(_:)), forControlEvents: .TouchUpInside) I get it now that I can see what's going on with better context. I can also just replace AudioElement with self. On Tue, Mar 22, 2016 at 9:30 AM Eric E. Dolecki wrote: > Thanks for the answer. I am going to read it a few times. > > Back

Silence Swift 2.2 warnings?

2016-04-01 Thread Eric E. Dolecki
I'm working on a project using Swift 2.1. I upgraded my Xcode to the latest and now see hundreds of warnings for Swift 2.2 improvements (mostly things like the change in selector syntax). Is there a way to turn off Swift 2.2 warnings in favor of Swift 2.1 warnings in Xcode? I can't go in an fix

Re: Silence Swift 2.2 warnings?

2016-04-01 Thread Eric E. Dolecki
pr 1, 2016 at 1:28 PM Quincey Morris < quinceymor...@rivergatesoftware.com> wrote: > On Apr 1, 2016, at 07:35 , Eric E. Dolecki wrote: > > > I can't go in an fix all the warnings because most of my team has not yet > upgraded their copies of Xcode. > > > I don’t kn

Re: WWDC 2016 direct download

2016-06-27 Thread Eric E Dolecki
Use the WWDC app to do this. Sent from my iP6+ > On Jun 27, 2016, at 2:47 AM, tridiak wrote: > > Where do you download the 2016 WWDC videos directly? > Or is that not possible (why)? > I want to watch them on my iPod touch while on work breaks. > > TIA > __

Re: Do Debug Apps Expire on iOS?

2016-07-21 Thread Eric E. Dolecki
I believe that debug apps built directly to hardware have a shelf life of one year. At least they did. It sounds like you have a problem with your application (bug) that you should track down before releasing to the store. Trying looking at the crash log(s) for your application from your device an

Re: Do Debug Apps Expire on iOS?

2016-07-21 Thread Eric E. Dolecki
File a Radar for that. I agree that would be nice, but normally a year should be plenty when you're getting debug help from other users. On Thu, Jul 21, 2016 at 10:15 AM Steve Bird wrote: > > > On Jul 21, 2016, at 10:05 AM, Eric E. Dolecki > wrote: > > > > I

iOS Application influencing a running web app?

2016-09-23 Thread Eric E. Dolecki
I am going to have a web application running on a local laptop - which runs various a prototype of a user experience. I've been asked to add an iOS application to the mix, to control parameters in the running app on the laptop. What might be the best way to architect this type of set up (and also

Re: iOS Application influencing a running web app?

2016-09-23 Thread Eric E. Dolecki
p, and hit it with requests (urls) > from the iOS app; this would be the Q&D way to do it easily and with some > level of security (https). > > Since you already have a web app, you can just add some admin requests to > it. > -- > __Pascal Bourguignon__ > > >

iOS app communicating with macOS app

2016-09-28 Thread Eric E. Dolecki
I'd like to make an iOS application communicate with a macOS application. No App Store involvement - just to prototype something local. What would be the best approach/easiest solution? A GameKit type thing or something else like BLE or something maybe even easier? Would only need to send small str

Multipeer between macOS Sierra and iOS 10

2016-09-29 Thread Eric E. Dolecki
I emailed the list yesterday about getting communication going between an iOS application and a macOS one. I coded it up this morning and it works quite well. However the consoles are filled with Errors eventhough things are connected and send data back and forth. Things like: [ViceroyTrace] [ICE]

Re: UIFeedbackGenerator: 0.1 second latency vs. built-in system haptics?

2016-10-03 Thread Eric E. Dolecki
If I had an iPhone 7 I could test this, but you're correct in stating that haptics need to fire nearly instantaneously for them to be perceived correctly by a user. I know mechanically there is a small time to ramp to full movement, but would expect it to be nominal. Eric On Sun, Oct 2, 2016 at 1

Extra logging in Simulators for iOS 10 & for macOS Sierra?

2016-10-06 Thread Eric E. Dolecki
When I build to device for iOS - I get the expected logging. If I build to an iOS Simulated device, I am getting a bunch of logging to the console. 2016-10-06 15:02:35.138443 testBars[59267:10948290] subsystem: com.apple.UIKit, category: HIDEventFiltered, enable_level: 0, persist_level: 0, default

Re: Extra logging in Simulators for iOS 10 & for macOS Sierra?

2016-10-06 Thread Eric E. Dolecki
Thank you very much. It's especially annoying when using MultipeerConnectivity. I'll check it out. On Thu, Oct 6, 2016 at 3:54 PM Quincey Morris < quinceymor...@rivergatesoftware.com> wrote: > On Oct 6, 2016, at 12:06 , Eric E. Dolecki wrote: > > > Is there a way to

Swift 3 macOS read keyboard

2016-10-10 Thread Eric E. Dolecki
I am delving into macOS development and I'd like to do something simple. Give the Application Window "focus" to receive keyboard events. Meaning no text fields. How exactly do I do this? I've been googling and have seen all kinds of things but none of them have worked out. What would be the most s

Re: Swift 3 macOS read keyboard

2016-10-10 Thread Eric E. Dolecki
:53 AM Eric E. Dolecki wrote: > I am delving into macOS development and I'd like to do something simple. > Give the Application Window "focus" to receive keyboard events. Meaning no > text fields. > > How exactly do I do this? I've been googling and have seen al

MPMediaPickerController - hide explicit songs?

2016-11-10 Thread Eric E. Dolecki
I have an application that allows a user to add songs to a queue. I am using the MPMediaPicker - but I'd like the application to be family friendly. Is there some way to prevent it from displaying explicit material (I am only concerned with songs) to begin with. I think that I would love a property

CABasicAnimation in a view that's covered by another?

2016-11-22 Thread Eric E. Dolecki
I have a cross-fading album art thing happening. When I can see the imageview it works fine, if it's totally covered by another view (a panel I slide up), it seems to not change. Is this a known thing? Doesn't seem right - I am trying to track down other related things to see. myfa

Re: CABasicAnimation in a view that's covered by another?

2016-11-22 Thread Eric E. Dolecki
panel starts to move (thus exposing a tiny bit of the UIImageView before the crossfade), it works. How strange is this? On Tue, Nov 22, 2016 at 1:57 PM David Duncan wrote: > > > On Nov 22, 2016, at 7:26 AM, Eric E. Dolecki wrote: > > > > I have a cross-fading album art thing hap

Re: CABasicAnimation in a view that's covered by another?

2016-11-23 Thread Eric E. Dolecki
Sure enough, I removed my delay and set my panel to an alpha of 0.99 - and the crossfade works as intended behind the view. This seems like a bug to me and I'll file it. On Tue, Nov 22, 2016 at 8:06 PM David Duncan wrote: > On Nov 22, 2016, at 1:22 PM, Eric E. Dolecki wrote: > >

Re: CABasicAnimation in a view that's covered by another?

2016-11-23 Thread Eric E. Dolecki
29373893 On Wed, Nov 23, 2016 at 8:36 AM Eric E. Dolecki wrote: > Sure enough, I removed my delay and set my panel to an alpha of 0.99 - and > the crossfade works as intended behind the view. This seems like a bug to > me and I'll file it. > > On Tue, Nov 22, 2016 at

Re: Vertically Centered Colon

2016-11-28 Thread Eric E. Dolecki
You could probably use an attributed string and add an attribute for the last colon: NSBaselineOffsetAttributeName On Mon, Nov 28, 2016 at 10:02 AM Gerriet M. Denkmann wrote: > iOS 10.1.1 > > WWDC 2015,Session 804: Introducing the New System Fonts tells (at about > 23:23) about Vertically Center

Drag UITableView up/down

2016-12-06 Thread Eric E. Dolecki
I'm looking for a chunk of view controller code that allows for: A UITableView. You can drag the whole table up (not the cells) to a limit from the top of the VC, say like 100px. When you've reached that, the table will scroll up normally. When you scroll the table down (cells) and reach item 0,

Re: Drag UITableView up/down

2016-12-06 Thread Eric E. Dolecki
e other navigation controller settings for the navigation bar > that you may find useful around hidesBarsOnSwipe so check those out. > -- > Gary L. Wade > http://www.garywade.com/ > > On Dec 6, 2016, at 11:38 AM, Eric E. Dolecki wrote: > > I'm looking for a chunk of view

Swift: Draw a circle with tic marks at it's edge?

2017-01-18 Thread Eric E. Dolecki
[image: Screen Shot 2017-01-18 at 3.28.22 PM.png] I have been tasked to create a control. A giant knob that is ticked along its edge (the number dependent on the minimum & maximum values). Not 360 degrees, just enough ticks to show the range. It will do other things as well, but I'm wondering how

Re: Swift: Draw a circle with tic marks at it's edge?

2017-01-18 Thread Eric E. Dolecki
Yes - and best approach. The number of ticks will always be dynamic. I'm making this control it's own UIView subclass. So when it's created, you supply min value, max value, current value, etc. When one swipes, it will rotate the control and change the value. I'm just trying to get the drawing cor

Re: Swift: Draw a circle with tic marks at it's edge?

2017-01-19 Thread Eric E. Dolecki
[image: knob.jpg] I have this Class that I am testing out. However, the position of the ticks is off. Seems like it needs to be moved down 1/2 way and the same to the right. I tried doing this with a shape layer and moving that - but it didn't change the appearance. Also, it seems like the spacing

Re: Swift: Draw a circle with tic marks at it's edge?

2017-01-19 Thread Eric E. Dolecki
suggestion. If I ever need more than 45 values, I'll probably need to revisit this solution, but I should be okay. On Thu, Jan 19, 2017 at 8:48 AM Eric E. Dolecki wrote: > [image: knob.jpg] > > I have this Class that I am testing out. However, the position of the > ticks is off. Se

Re: Rotary knob with table-like momentum

2017-01-23 Thread Eric E. Dolecki
Thanks for the project. It doesn't contain momentum or rubber-banding though. Right now I have tapping on the left or right to + or - the value and animates the knob. You can also kind of throw it - I translate velocity to a number of steps to move, and it animates appropriately (with no rubber-ban

Math question

2017-01-24 Thread Eric E. Dolecki
I have a situation where the distance of an onTouchesBegan in iOS produces a scale for an object. min distance of 100 = scale of 1.0 max distance of 200 = scale of 3.0 So I am looking for a number between 100 and 200 which ends up being between 1.0 and 3.0. I can get the distance easily enough, b

Re: Math question

2017-01-24 Thread Eric E. Dolecki
you want, but I think your “scale” > would be: > > scale = (distance - minDistance) / (maxDistance - minDistance) * (maxScale > - minScale) + minScale > > In this case, > > scale = (distance - 100) / 100 * 2 + 1 > > Saagar Jha > > On Jan 24, 2017, at 10:45 AM, Eric E.

Re: Math question

2017-01-24 Thread Eric E. Dolecki
Never mind on that one. with a 0-100, it's super simple. But if it's 0 - 15 that could be quite different. I'll noodle on that. On Tue, Jan 24, 2017 at 1:57 PM Eric E. Dolecki wrote: > Thanks so much, that works perfectly! > > Another quick question. > > distance

Re: WatchOS3 layering?

2017-01-27 Thread Eric E. Dolecki
Thanks for your reply. I do think that might work. There is just that one area of overlap to worry about. The group background image could indeed be a solution. I'll give it a go. Eric On Fri, Jan 27, 2017 at 10:27 AM Jeff Kelley wrote: > Hi Eric, > > This sounds achievable. You can embed inter

App Groups saveURL problem

2017-02-07 Thread Eric E. Dolecki
I have a watch app. In App Groups for the project I've enabled App Groups (under capabilities). My app group string is "group.net.ericd.WatchRecord". In my extension InterfaceController I have this code var saveURL: NSURL? override func awake(withContext context: Any?) { super.awake(withCon

Received file from watch - how to play?

2017-02-07 Thread Eric E. Dolecki
In my ViewController on the iOS side: func session(_ session: WCSession, didReceive file: WCSessionFile) I am getting the file (which is a wav file) - but I'm not sure how to actually play it in iOS when I get it. I've tried file.fileURL!.path and creating a NSURL from that to instantiate a AVAud

Use WKSessionFile as Data for AVAudioPlayer?

2017-02-07 Thread Eric E. Dolecki
I am transferring an audio file from Apple Watch extension to iOS application. In the Extension: func sendAudioFileProper(){ WCSession.default().transferFile(saveURL as! URL, metadata: nil) } I create saveURL like this: let fileManager = FileManager.default let container = fileManager.contai

Re: Use WKSessionFile as Data for AVAudioPlayer?

2017-02-08 Thread Eric E. Dolecki
ed. (OSStatus error 2003334207.)* Seems kind of odd. I would think this might be easy, but for me so far it's not. Any help appreciated!!! I just want to play the .wav file that was sent to the phone. On Tue, Feb 7, 2017 at 11:25 PM Jens Alfke wrote: > > On Feb 7, 2017, at 6:49 PM, E

Re: Use WKSessionFile as Data for AVAudioPlayer?

2017-02-08 Thread Eric E. Dolecki
edDescription) } } } On Wed, Feb 8, 2017 at 8:48 AM Eric E. Dolecki wrote: > When I try the following I get a "OSStatus error 2003334207" > > func session(_ session: WCSession, didReceive file: WCSessionFile) > { > DispatchQueue.main.async > { &

Watch extension running old version

2017-02-15 Thread Eric E. Dolecki
I have a watch extension. When I build to my phone, the watch gets the correct version installed (I can tell by changes I made in its UI). Works fine - communication works between phone and watch. Later on, I'll run the extension again - and I get a previous version running. What might be causing

Q about maintaining uiimage size across devices

2015-02-09 Thread Eric E. Dolecki
Quick question. I need to create a simulation that can run on iPhone 5, 6, 6 Plus, and iPads... the main UI in the simulation needs to be 69mm in diameter (it's a circular display for a product). I have all my screens as PNGs - and would like to keep it that way (swapping images into a image view i

Obj-c to Swift conversion question

2015-07-28 Thread Eric E. Dolecki
The more I stretch to Swift goals, the more I learn. However I've come upon a little thing where I am translating code into Swift and quickly stumbled. *Obj-C:* NSValue *keyboardEndFrameValue = [[notification userInfo] objectForKey:UIKeyboardFrameEndUserInfoKey]; *Swift (the closest I've come):*

Re: Obj-c to Swift conversion question

2015-07-28 Thread Eric E. Dolecki
n.y = keyboardEndFrame.origin.y - textFieldFrame.size.height self.ipField.frame = textFieldFrame; }, completion: { _ in println("move complete.") }) } On Tue, Jul 28, 2015 at 11:35 AM Jean-Daniel Dupas wrote: > > > Le 28 juil

Re: Regarding these Olivia messages. Can we do something about the list security?

2015-07-29 Thread Eric E. Dolecki
Gotta agree. I was shocked when that came in. On Wed, Jul 29, 2015 at 3:18 PM Alex Zavatone wrote: > I guess this is more of a list admin request, but it's rather shocking to > get these emails from "Olivia" coming from replying to an Apple listserve > thread. > > Is there anything we can do abo

Re: [iPhone] : How to customize Phonepad ?

2009-09-08 Thread Eric E. Dolecki
Then I would say you have very little to do ;) On Tue, Sep 8, 2009 at 10:34 AM, Dan Ribe wrote: > Hi All, > I am looking for a way to customize the Phonepad provided by the iPhone for > my application use. Here is the list I am interested in : > ___ >

Mixed font sizes in a UILabel?

2009-10-15 Thread Eric E. Dolecki
I have a simple question. In my application (iPhone) I am displaying the current time. NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease]; [formatter setTimeStyle:NSDateFormatterShortStyle]; NSDate *date = [NSDate date]; [formatter setDateFormat:@"h:mm a"]; [clockLabel s

Re: Mixed font sizes in a UILabel?

2009-10-15 Thread Eric E. Dolecki
draw the text yourself using > UIStringDrawing methods. Otherwise, you need two labels for this. > > Luke > > > On Oct 15, 2009, at 6:45 AM, Eric E. Dolecki wrote: > > I have a simple question. In my application (iPhone) I am displaying the >> current time. >> &

Recreating iPhone alarm Picker

2009-10-19 Thread Eric E. Dolecki
I have a fairly noob question in regards to recreating an alarm view using a Picker control. On the iPhone, the values for hours & minutes wrap around - and I was wondering if this is accomplished by repeating values in an NSArray (so many that you're not likely to scroll to them), or are they usin

Re: Recreating iPhone alarm Picker

2009-10-19 Thread Eric E. Dolecki
> > Luke > > > On Oct 19, 2009, at 6:44 AM, Eric E. Dolecki wrote: > > I have a fairly noob question in regards to recreating an alarm view using >> a >> Picker control. >> On the iPhone, the values for hours & minutes wrap around - and I was >> w

iPhone: UIDatePicker - setting the time?

2009-10-19 Thread Eric E. Dolecki
I am trying to set a UIDatePicker (in Time mode) to a specific hour, minute and am/pm. I assume that I need to create a NSDate object with said hr, min, ampm & then apply it to my picker, but after some googling and checking APIs I am not seeing a direct way of doing this. I have my hr and mins as

iPhone: UIDatePicker plus touch events?

2009-10-20 Thread Eric E. Dolecki
I am curious if it's a bad idea to have touch enabled on a view while a UIDatePicker is above in another view. Performance seems to be quite spotty (choppy and slow to respond) in the animations in the UIDatePicker. Is this a known issue? Thanks, Eric ___

I don't understand this leak

2009-10-20 Thread Eric E. Dolecki
Instruments: Malloc 128 Bytes 0x7100780 128 Bytes CoreGraphics open_handle_to_dylib_path Malloc 128 Bytes 0x3d0aa50 128 Bytes CoreGraphics open_handle_to_dylib_path I am not sure what this is... AppDelegate adding subview? Is this a bug in Instruments, or something else? -- http://eri

Calling method in brand new view to set a variable?

2009-10-20 Thread Eric E. Dolecki
I am calling up a view from it's nib, and immediately calling a method in that view controller class to set a variable. I can't access the newly set variable in viewDidLoad, so I have a timer of 100ms inside the viewDidLoad that actually uses the variable that is set (it's available by then). Is th

iPhone: View with "layer" type fading?

2009-10-21 Thread Eric E. Dolecki
I have a view controller I am loading and displaying - using an alpha fade. However, the elements are all fading at different rates as the whole view fades in/out. Is there a way to have all the elements fade together (in Flash we can set an object to have a "layer" blending mode to do the same kin

Re: File Backup Date

2010-03-16 Thread Eric E. Dolecki
I have no experience here, but if you are resaving the file, won't the next time it's backed up add a new backup date to the file? On Tue, Mar 16, 2010 at 12:09 PM, gMail.com wrote: > Hi, > as you know fileAttributesAtPath contains the creation date and the > modification date, but it doesn't con

Re: Font Style Names for iPhone/iPad

2010-04-12 Thread Eric E. Dolecki
http://www.alexcurylo.com/blog/2008/10/05/snippet-available-uifonts/ On Mon, Apr 12, 2010 at 5:03 PM, Gordon Apple wrote: > How do I get a list of style names for a particular font family for > iPhone/iPad? I can get the full font names and have my own font picker > which shows those. However,

Question about popover being dismissed clicking outside it

2010-05-26 Thread Eric E. Dolecki
I have a UITabBar and a button in it. I am calling up a popover on the button, but I want to make sure I only ever have one. And when the iPad is rotated, remove the popover (I don't want it up anymore at that point). How do I detect an event where the popover is dismissed by clicking outside the c

Re: Question about popover being dismissed clicking outside it

2010-05-26 Thread Eric E. Dolecki
Sorry - I just needed to remove that check for nil and do this: [self.popoverController dismissPopoverAnimated:NO]; self.popoverController = nil; ... then create On Wed, May 26, 2010 at 3:03 PM, Eric E. Dolecki wrote: > I have a UITabBar and a button in it. I am calling up a popover on

Question about scaling text within a subView

2010-06-09 Thread Eric E. Dolecki
I have a view that contains text in it. I am scaling it up and down... When at 100% the text is nice and crisp. When scaled, it's blurry (the default state for the view). How can I fix that? Would I need to set the text again at a specific size each time the animation is complete? CGAffineTransfo

Question about fading a UISlider

2010-06-15 Thread Eric E. Dolecki
I am animating the alpha of a UISlider, and you can see that the UI is actual composed of two rounded rectangles with a round button above the union point. Is there a layer mode (like blendMode.LAYER in Flash's AS3)? So that you can't see the guts of the control as it's faded. Thanks.

Question about sending to PHP from Obj-C

2011-08-04 Thread Eric E. Dolecki
I have a little script sitting locally on my Mac (webserver). http://eric.domain.com/iOS_Log/logger.php: I am simply trying to send the PHP a small string from my app on a device. I've seen examples of POST everywhere, but looking for GET. Of course if I do *http://eric.domain.com/iOS_Log/logg

Re: Question about sending to PHP from Obj-C

2011-08-04 Thread Eric E. Dolecki
Sorry about the PHP. I got things to work on my hosted site - my local webserver wasn't liking things for some reason. Thanks :) On Thu, Aug 4, 2011 at 10:55 AM, Keary Suska wrote: > On Aug 4, 2011, at 7:52 AM, Eric E. Dolecki wrote: > > > I have a little script sitting

Re: Optimizing a loop

2011-08-10 Thread Eric E. Dolecki
Thanks for the reply. I've since broken up the songs into buckets depending on the title length and I use a Dictionary to retrieve arrays based on the length, then I am only searching a subset. It's WAY faster than searching the entire collection of songs. I just pre-build this during app start up

  1   2   3   4   5   >