MFI Device Picker not displaying

2020-02-11 Thread Eric E. Dolecki via Cocoa-dev
I have a device with an MFI chip in it, I have my project set up with the supported external accessory protocol strings, and I want to pull up the MFI device picker just to prove to myself that my app can see my device. This code runs, prints to the console, but I get a strange error. if btManage

Re: A question in regards to AddInstanceForFactory

2019-09-26 Thread Eric E. Dolecki via Cocoa-dev
FYI: This only appears when running in a simulator. On Thu, Sep 26, 2019 at 8:31 AM Eric E. Dolecki wrote: > I am using Xcode 11.0 (11420a), targeting iOS 13, Swift 5, and playing > back a local audio file. Seems simple enough, but I am getting a console > print: > >

A question in regards to AddInstanceForFactory

2019-09-26 Thread Eric E. Dolecki via Cocoa-dev
I am using Xcode 11.0 (11420a), targeting iOS 13, Swift 5, and playing back a local audio file. Seems simple enough, but I am getting a console print: let path = Bundle.main.path(forResource: "Tchaikovsky_Rococo_Var_orch.mp3", ofType:nil)! let url = URL(fileURLWithPath: path)

Quick sanity check for iOS AVAudioSession

2018-11-29 Thread Eric E. Dolecki
Hey all, I have an application I am developing and I cannot currently build to a device. So I am asking in lieu of proper testing on my end at the moment. 1. I would like to mix my audio with that in another session (say Apple Music is playing something). So before I play my app audio, I call thi

Re: UiView as slider with inertia

2018-10-01 Thread Eric E. Dolecki
Have an example? Sounds interesting - but I need the control to work like a UIScrollView in a way (the content can go off to the left and right and not flow) | visible | | | 0 1 2 | 3 4 *5* 6 7 | 8 9 |

Re: touchesMoved value setting

2018-09-18 Thread Eric E. Dolecki
gt; > On Sep 18, 2018, at 6:44 AM, Eric E. Dolecki wrote: > > > > I have a UI control that can be adjusted up and down using touch & drag. > > I've been asked to provide a control value based on how far the drag is > via > > distance. So far so good. > >

touchesMoved value setting

2018-09-18 Thread Eric E. Dolecki
I have a UI control that can be adjusted up and down using touch & drag. I've been asked to provide a control value based on how far the drag is via distance. So far so good. What my designer wants is a value change of every 20 pixels or so (control is 150px tall @ the moment) - so every 20 pixels

Re: Checking if a string is valid JSON

2018-01-29 Thread Eric E. Dolecki
evel object might be an array, in which case I’d expect that casting > to an NSDictionary would fail. > > Saagar Jha > > On Jan 29, 2018, at 12:17, Eric E. Dolecki wrote: > > I am generating a String of JSON. Before I use it, I want to check to make > sure that it's v

Checking if a string is valid JSON

2018-01-29 Thread Eric E. Dolecki
I am generating a String of JSON. Before I use it, I want to check to make sure that it's valid. My code is below. Does this look alright? Thanks, Eric let jsonString = composedString let jsonData = jsonString.data(using: String.Encoding.utf8) do { if (try

Re: Draw an arc given 2 angles.

2018-01-25 Thread Eric E. Dolecki
Thanks. I figured out things on this end. I have it now. It always seems to happen after I fire off an email :) Eric On Thu, Jan 25, 2018 at 12:57 PM Saagar Jha wrote: > > Saagar Jha > > On Jan 25, 2018, at 09:47, Eric E. Dolecki wrote: > > I've been googling witho

Draw an arc given 2 angles.

2018-01-25 Thread Eric E. Dolecki
I've been googling without great success so far. I would like to draw a 6px thick red arc (not wedge), 0º at the top of the screen, and from say 60° - 110º. Assume I have to create a UIBezierPath, and then create a CAShapeLayer with that bezier path? Then add the shape layer to a UIView that I hav

AVSpeechSynthesizer in iOS 11?

2017-09-19 Thread Eric E. Dolecki
Anyone know if there is a trick to getting the new voice in iOS 11 AVSpeechSynthesizer? I am hearing the older, more robotic version of Siri. Eric ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator com

Question about Siri use

2017-09-01 Thread Eric E. Dolecki
I would like to have Siri ask a user a question (text to speech - this part is easy), and then wait for a user's response (with end of speech detection). Then Siri will ask the user, "did you say ?" - etc. There is SFSpeechRecognizer, and then there is SiriKit. The SFSpeechRecognizer I've seen onl

Re: Question about Audio for iOS (SessionCategory?)

2017-08-24 Thread Eric E. Dolecki
that tells the Music app to unpause when my audio is done. I put this stuff into a function which seems to be working. Eric On Thu, Aug 24, 2017 at 8:52 AM Eric E. Dolecki wrote: > Quick question. > > Am I supposed to set the category, then set a different category while my >

Re: Question about Audio for iOS (SessionCategory?)

2017-08-24 Thread Eric E. Dolecki
Quick question. Am I supposed to set the category, then set a different category while my audio plays, then when complete go back to the original category? Is that how I should approach - or are you supposed to set the category one time? Eric On Fri, Aug 18, 2017 at 3:02 PM Eric E. Dolecki

Re: Question about Audio for iOS (SessionCategory?)

2017-08-18 Thread Eric E. Dolecki
to see if they added anything here or not. Have a great weekend! On Fri, Aug 18, 2017 at 2:04 PM Eric E. Dolecki wrote: > I moved stuff to AppDelegate and it seems a little better. However, when > my audio plays, I get Apple Music to duck, and it doesn't come back up in > volume

Re: Question about Audio for iOS (SessionCategory?)

2017-08-18 Thread Eric E. Dolecki
pport the silent/mute switch. This is > an item that is worth testing to know what you are getting. > > Cheers, > Alex Zavatone > > > On Aug 18, 2017, at 12:55 PM, Quincey Morris < > quinceymor...@rivergatesoftware.com> wrote: > > > > On Aug 18, 2017, at 1

Re: Question about Audio for iOS (SessionCategory?)

2017-08-18 Thread Eric E. Dolecki
(AVAudioSessionCategoryAmbient, with: [.duckOthers])* I would assume that the audio would come back up. And wouldn't think my app would pause Apple Music when it starts up... On Fri, Aug 18, 2017 at 1:34 PM Quincey Morris < quinceymor...@rivergatesoftware.com> wrote: > On Aug 18, 2017, at

Question about Audio for iOS (SessionCategory?)

2017-08-18 Thread Eric E. Dolecki
I have an application that plays snippets of audio - mainly targetted towards BT headphones. It works, however it stops audio from other apps. For instance, I am listening to some Apple Music on my phone over my headphones. My app then plays some audio - which comes through the headphones as expec

Question about NSObject based Class & delegates

2017-08-14 Thread Eric E. Dolecki
I have a custom class. I want to use some delegation in it. How do I go about this - currently this crashes when I assign delegates to self. class AudioRecordingManager: NSObject, AVAudioPlayerDelegate, AVSpeechSynthesizerDelegate { let fileName = "demoRecording.m4a" var messageToSpeakAft

didEnterRegion accuracy - how to improve?

2017-08-01 Thread Eric E. Dolecki
I have circular regions for a map (most have 30m radius). didEnterRegion for the location manager trip in advance of entering the regions... sometimes by many meters. Is there a way to enforce better accuracy? I already use locationManager.desiredAccuracy = kCLLocationAccuracyBestForNavigation loc

User Location & Array of CLCircularRegions

2017-07-27 Thread Eric E. Dolecki
I am trying to get around the limit of 20 monitored regions for iOS. So, I have an array of all regions (CLCircularRegions) and I have the user's location. Based on that I want to unregister all regions, and then find the closest 20 of them. How exactly should I do this? var monitoredRegions:[CLCi

Re: Question about structs and enum placement in a project

2017-07-13 Thread Eric E. Dolecki
up with less than a dozen of each in total. On Thu, Jul 13, 2017 at 9:56 AM Igor Ranieri Elland wrote: > If they’re not being declared inside another object, why not put them in > their own files? > > > > Am 13.07.2017 um 15:53 schrieb Eric E. Dolecki : > > > > Perhap

Re: Question about structs and enum placement in a project

2017-07-13 Thread Eric E. Dolecki
> For a project of any appreciable size, that’s gonna be one huge file… > > Charles > > > On Jul 13, 2017, at 8:37 AM, Eric E. Dolecki wrote: > > > > I am planning on putting all my structs and enums into it's own swift > file > > - to keep my

Question about structs and enum placement in a project

2017-07-13 Thread Eric E. Dolecki
I am planning on putting all my structs and enums into it's own swift file - to keep my project cleaner. Seems safe enough, thoughts on this? Thanks, Eric ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moder

Re: MKMapView userLocation heading & a dropped pin

2017-06-23 Thread Eric E. Dolecki
Thank you :) On Fri, Jun 23, 2017 at 2:17 PM Marco S Hyman wrote: > > I am trying to determine whether or not the pin is in front, left, right, > > or behind the user. I am going to perform calculations within > > > > func locationManager(_ manager: CLLocationManager, didUpdateLocations > > loca

MKMapView userLocation heading & a dropped pin

2017-06-23 Thread Eric E. Dolecki
Happy Friday everyone. I have a map and on it a userLocation which is tracked. I also have a dropped pin on the map. I am trying to determine whether or not the pin is in front, left, right, or behind the user. I am going to perform calculations within func locationManager(_ manager: CLLocationM

Re: Deep linking from 1 tvOS app to another

2017-06-16 Thread Eric E. Dolecki
Thank you so much! On Fri, Jun 16, 2017 at 3:15 PM Jens Alfke wrote: > > On Jun 16, 2017, at 8:00 AM, Eric E. Dolecki wrote: > >let modified = supplied.replacingOccurrences(of: " ", with: "+") > > > Don’t use “+”, use “%20”. The “+” is only

Re: Deep linking from 1 tvOS app to another

2017-06-16 Thread Eric E. Dolecki
not legal in a URL. So failure or unpredictable results is > expected. See for example discussion here > https://stackoverflow.com/questions/497908/is-a-url-allowed-to-contain-a-space > > > On 16 June 2017 at 16:00, Eric E. Dolecki wrote: > >> I have deep linking working, b

Deep linking from 1 tvOS app to another

2017-06-16 Thread Eric E. Dolecki
I have deep linking working, but if I introduce spaces into the URL, it fails. Is this expected or can I do this another way? textfield value "hello my name is Eric" @IBAction func editingEnded(_ sender: Any) { if let supplied = textEntry.text { * //If I don't do this, url is

Re: Times in other cities

2017-05-15 Thread Eric E. Dolecki
me in the dead of winter, but why risk it? If you want wall clock > time in London as someone would see it if they were sitting there, just ask > for Europe/London. Safer. > > Andrew. > > > On May 15, 2017, at 9:17 AM, Eric E. Dolecki wrote: > > Europe/London = BST thou

Re: Times in other cities

2017-05-15 Thread Eric E. Dolecki
Europe/London = BST though, correct? On Mon, May 15, 2017 at 9:06 AM Andrew Thompson wrote: > > > > On May 15, 2017, at 8:50 AM, Eric E. Dolecki wrote: > > > > Thanks for your reply. Does this look safe to use? > > > > // London > > let

Re: Times in other cities

2017-05-15 Thread Eric E. Dolecki
Thanks for your reply. Does this look safe to use? // London let locale = TimeZone.init(abbreviation: "BST") let cal = Calendar.current let date = Date() let comp = cal.dateComponents(in:locale!, from: date) // Local (right now for me it's Boston) let hour = Calendar.current.component(.hour, from

tvOS Siri Universal Search

2017-04-20 Thread Eric E. Dolecki
Yesterday's news: The new TV app Apple introduced last fall as a central, Siri-searchable library of videos from various apps has now signed on Cartoon Network. Its content now supports Universal Search, single sign-on, and recommendations on iPhone, iPad and 4th generation Apple TV. Is this Siri

Re: Question about tvOS and the Apple TV remote

2017-04-06 Thread Eric E. Dolecki
; wrote: > On Mar 31, 2017, at 12:12 , Eric E. Dolecki wrote: > > > How is this done? I would like to add this functionality to my tvOS > application. > > > I think you’re looking for this: > > developer.apple.com/reference/intents > > And of course there’

Re: Does XML (AEXML) node exist?

2017-04-05 Thread Eric E. Dolecki
I tried this and it seems to work - but does it look sound? let theVolume = xmlDoc.root["volumeUpdated"].first if theVolume != nil { print(">> We have a volume update. \(String(describing: theVolume!))") } On Wed, Apr 5, 2017 at 10:56 AM Eric E. Dolecki wrote: &g

Does XML (AEXML) node exist?

2017-04-05 Thread Eric E. Dolecki
I'm using AEXML and I have some return XML from a WebSocket. I want to check if the return XML contains a node or not. In this way, I know what kind of data I'm receiving. What's the best way to check if that volumeUpdated node exists? It has no attributes or value. I tried this (AEXMLEle

Question about tvOS and the Apple TV remote

2017-03-31 Thread Eric E. Dolecki
YouTube supports this: You can be anywhere on the Apple TV, and ask Siri with the remote "Find kittens in YouTube". tvOS will launch the YouTube app and put the text request in the search box within YouTube search. ("kittens"). How is this done? I would like to add this functionality to my tvOS ap

Rect for centered text in UILabel?

2017-03-30 Thread Eric E. Dolecki
I have a very wide UILabel that will take different text over time. Single line. No attributed. I would like to position an image to the left of the first character in the label any time it's updated. So I need to get a CGRect or something of the text within the UILabel itself. I know I did this y

Re: Odd UILabel behavior on tvOS

2017-03-21 Thread Eric E. Dolecki
Sorry. My argument name to set the string was "string" and that prevented operation evidently. On Tue, Mar 21, 2017 at 10:43 AM Eric E. Dolecki wrote: > I have a view & I update a label within it. Super simple. > > My string is like > label.text = "Connecting to

Odd UILabel behavior on tvOS

2017-03-21 Thread Eric E. Dolecki
I have a view & I update a label within it. Super simple. My string is like label.text = "Connecting to \"\(useName)\"" I want the double quotes around that variable. As soon as the useName variable (a string) is inserted, anything after that does not go into the label. label.text = "Connecting

Re: Getting the true rotation of a UIView layer

2017-03-14 Thread Eric E. Dolecki
gle* *}* *print("final: \(testAngle)º")* Seems to be spot on. On Tue, Mar 14, 2017 at 11:41 PM Eric E. Dolecki wrote: > I don't follow. > > On Tue, Mar 14, 2017 at 11:29 PM Graham Cox > wrote: > > Get the final transform, then use it to transform an angle of 0. Th

Re: Getting the true rotation of a UIView layer

2017-03-14 Thread Eric E. Dolecki
I don't follow. On Tue, Mar 14, 2017 at 11:29 PM Graham Cox wrote: > Get the final transform, then use it to transform an angle of 0. The > result is the angle. > > —Graham > > > > > On 15 Mar 2017, at 2:13 PM, Eric E. Dolecki wrote: > > > > Once don

Getting the true rotation of a UIView layer

2017-03-14 Thread Eric E. Dolecki
I have a view that I am rotating a lot, often more than 360 degrees (spins around a few times). Each time it stops, I want to determine the resulting "visual" angle. How do I go about doing that? rotateView is a configured CABasicAnimation: *let rotateView = CABasicAnimation()* *let randonAngle =

Re: More elegance than a long if/else

2017-03-10 Thread Eric E. Dolecki
chaMan> | > jeffkelley.org > > On Fri, Mar 10, 2017 at 10:41 AM, Eric E. Dolecki > wrote: > > I have this super simple code, but I'd like to whittle it down to something > a lot smaller - basically looking for multiples of 10 (100-0) for a value. > I need coffee, w

More elegance than a long if/else

2017-03-10 Thread Eric E. Dolecki
I have this super simple code, but I'd like to whittle it down to something a lot smaller - basically looking for multiples of 10 (100-0) for a value. I need coffee, what's a great way to do this in Swift 3? if _myBatteryLevel >= 90 { batteryIcon.image = UIImage(named: "10") }

Adding a watchOS complication to an existing project?

2017-03-03 Thread Eric E. Dolecki
Everything I've seen shows adding the complication on project creation. How does one go about adding it to a project later on? I have my watch app right where I want it, but I didn't think I would need a complication. Until today. Thanks! ___ Cocoa-dev

tvOS UIFocusGuide

2017-02-24 Thread Eric E. Dolecki
>From what I've seen, developers need to set up constraints for each UIFocusGuide used. leftAnchor, topAnchor, ... etc. Is there something like a set layoutGuide we can use to create a UIFocusGuide instance? Or does each need constraints set? What happens if buttons appear/disappear - we need to u

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

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 > { &

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

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

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

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

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

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: 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.

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: 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

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: 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-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

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: 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

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: 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

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: 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-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

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

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

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

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: 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

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: 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

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]

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

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 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: 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

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: 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: 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

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: #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

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 >> >

#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

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

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

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: 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: 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

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: 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 >

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
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 >

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: 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

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

  1   2   3   4   5   >