Two Problems

2016-02-12 Thread Charles Jenkins
PROBLEM 1: Is there anything new/tricky about the UISearchBar? I have placed one in my view, and dragged an IBOutlet to the companion source file. The result is an @IBOutlet weak var searchBar: UISearchBar! I added UISearchBarDelegate to my ViewController and implemented one method:  func 

Re: Two Problems

2016-02-12 Thread Peter Tomaselli
You'll probably need a… what is it nowadays? “@objc”? annotation on that func? Apologies that I can't be more specific, I am on my Grim Windows Work Computer atm… On Fri, Feb 12, 2016 at 11:31 AM, Charles Jenkins wrote: > Alex, > > The suggestion of changing the graphic’s

Re: Two Problems

2016-02-12 Thread Charles Jenkins
Alex, The suggestion of changing the graphic’s name is a terrific one. I’ll do that tonight, and I expect it will work. I should’ve thought of that myself. Thanks! I’m using Swift, but whether my controller conforms or not is the nature of my question. I wasn’t totally clear, but when I said I

Re: Two Problems

2016-02-12 Thread Alex Zavatone
1. What are you setting the delegate to? Self? If so, have you made sure to "conform" to that delegate in your class? Something like @interface CharlesViewController : UIViewController ?? If you don't do that, then the method you need isn't accessible through self and BLAMMO!

Re: Two Problems

2016-02-12 Thread Alex Zavatone
On Feb 12, 2016, at 11:31 AM, Charles Jenkins wrote: > Alex, > > The suggestion of changing the graphic’s name is a terrific one. I’ll do that > tonight, and I expect it will work. I should’ve thought of that myself. > Thanks! Yay. > I’m using Swift, but whether my controller conforms or

Two problems trying to use NSTextView for a scrolling console/terminal like view

2013-12-28 Thread Eric Wing
], 0)]; } } This works, but I encountered two problems when the data set gets large. 1) Somewhere after 40,000 lines of text, the application starts becoming unresponsive. Around 50k-60k, the application feels hung and I have to force kill it. I figured out that the bottleneck

Re: Two problems trying to use NSTextView for a scrolling console/terminal like view

2013-12-28 Thread Jerry Krinock
On 2013 Dec 28, at 15:14, Eric Wing ewmail...@gmail.com wrote: 1) I figured out that the bottleneck was in scrollRangeToVisible call. You could see if you have better luck with -[NSView scrollPoint:]. 2) -[NSBigMutableString replaceCharactersInRange:withString:]: nil argument Well, there’s

Re: Two problems trying to use NSTextView for a scrolling console/terminal like view

2013-12-28 Thread Eric Wing
On 12/28/13, Jerry Krinock je...@ieee.org wrote: On 2013 Dec 28, at 15:14, Eric Wing ewmail...@gmail.com wrote: 1) I figured out that the bottleneck was in scrollRangeToVisible call. You could see if you have better luck with -[NSView scrollPoint:]. 2) -[NSBigMutableString

Re: Two problems trying to use NSTextView for a scrolling console/terminal like view

2013-12-28 Thread Jens Alfke
On Dec 28, 2013, at 10:11 PM, Eric Wing ewmail...@gmail.com wrote: But I did notice a new problem. At around 800,000 lines, the NSTextView stops displaying new appended text. The Cocoa text system really doesn’t scale well to such huge amounts of text. The only apps I know of that can handle

Re: Xcode3 vs Xcode2 - two problems

2008-07-18 Thread Bill Bumgarner
On Jul 18, 2008, at 10:16 AM, Joeles Baker wrote: i just tried the following with Xcode3: 1) read a plist in awakeFromNib store its content in an array NSArray* myArray = [NSPropertyListSerialization 2) tried to setup my tableview like so: - (NSInteger)tableView:(UITableView

Re: Xcode3 vs Xcode2 - two problems

2008-07-18 Thread Bill Bumgarner
On Jul 18, 2008, at 10:27 AM, Joeles Baker wrote: Oh my god - after all those years. Thank you. Sorry for this stupid question. But one thing remains. Why am I not able to drag the header of my class to the interface builder window? With Xcode2/IB2 you just had to drag the header file to the