Re: NSTextView and Syntax Highlighting

2014-12-20 Thread Charles Jenkins
Martin, Ecir, and Quincey: Thank you all! All three answers turned out to be helpful. (Quincey, you led me to learn about how to get attributed substrings, should I ever need to do it.) Martin, your chief difference from my code seems be calling the layout manager’s

Re: system sounds in iOS

2014-12-20 Thread Kyle Sluder
On Sat, Dec 20, 2014, at 12:12 AM, Donald Hall wrote: Assuming we aren’t allowed to access the system sound files, can anyone recommend a safe place to get free-to-use sound files? For the sound you want, you might consider playing around with the Mac version of GarageBand yourself. There might

Re: system sounds in iOS

2014-12-20 Thread Carl Hoefs
On Dec 19, 2014, at 11:12 PM, Donald Hall d...@appsandmore.com wrote: I want to play a sound indicating that the user has tried to type a non-allowed character (e.g. a letter where a number is needed) in conjunction with textField:textField shouldChangeCharactersInRange:replacementString:” I

Re: What triggers -applicationDidChangeScreenParameters: delegate method?

2014-12-20 Thread Bill Cheeseman
On Dec 11, 2014, at 4:31 AM, Bill Cheeseman wjcheese...@gmail.com wrote: The problem is that the delegate method is being triggered now at every single launch of my application, but the screen resolution and monitor arrangement have not changed. The user's ability to choose a new location

Re: system sounds in iOS

2014-12-20 Thread Maxthon Chan
There is nothing preventing you from pointing a microphone and hitting record button. If you can find some device, preferably mechanical, that produces those sounds point a microphone at it and use Garageband to touch it up a little bit. If you have you can also make your own sound effects with

view problems

2014-12-20 Thread H Miersch
hi. i have a window with a custom view in it. I add another view in code and then i add a couple of constraints to centre the new view in its superview. so far so good. if i DON'T call [self setTranslatesAutoresizingMaskIntoConstraints:NO]; on my subview, it appears, but the superview (and wit

Re: view problems

2014-12-20 Thread Quincey Morris
On Dec 20, 2014, at 12:08 , H Miersch hmier...@me.com wrote: if I DO call [self setTranslatesAutoresizingMaskIntoConstraints:NO]; on the subview, the window and its view behave normally, but the subview doesn't appear, its drawrect method is not called, nothing. so what am i doing wrong?

Re: view problems

2014-12-20 Thread H Miersch
On 20. Dec 2014, at 20:39, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Dec 20, 2014, at 12:08 , H Miersch hmier...@me.com wrote: if I DO call [self setTranslatesAutoresizingMaskIntoConstraints:NO]; on the subview, the window and its view behave normally, but the subview

Re: view problems

2014-12-20 Thread H Miersch
On 20. Dec 2014, at 20:39, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Dec 20, 2014, at 12:08 , H Miersch hmier...@me.com wrote: if I DO call [self setTranslatesAutoresizingMaskIntoConstraints:NO]; on the subview, the window and its view behave normally, but the subview

Re: view problems

2014-12-20 Thread Quincey Morris
On Dec 20, 2014, at 13:09 , H Miersch hmier...@me.com wrote: should i add the constraints to the superview instead of self? The height and width constraints should be on the view itself. I’d be more concerned about timing: Did you add constraints before or after layout had occurred, and if

Re: view problems

2014-12-20 Thread Ken Thomases
On Dec 20, 2014, at 2:08 PM, H Miersch hmier...@me.com wrote: i have a window with a custom view in it. I add another view in code and then i add a couple of constraints to centre the new view in its superview. so far so good. if i DON'T call [self

Re: view problems

2014-12-20 Thread Quincey Morris
On Dec 20, 2014, at 16:10 , Ken Thomases k...@codeweavers.com wrote: You've shown the constraints for the size of the subview. There was an exchange in this thread that I just realized wasn’t posted to the list. I *think* this was accidental on the OP’s part, so I’ll copy the messages here,

Re: view problems

2014-12-20 Thread H Miersch
On 20. Dec 2014, at 22:33, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Dec 20, 2014, at 13:50 , H Miersch hmier...@me.com wrote: not sure when layout occurs, but as i say below, that method is called from drawrect From -[NSView drawRect:]?? You most definitely should