Tab Bar iPad App With Table View (Please help, been trying all day)

2011-06-17 Thread Julie Seif
Hi, I want to create a Tab Bar based iPad App. I would like it so that you tap on one of the tab bar buttons and a Table View comes up in the view area for that button as a Navigation Menu, you would tap the table cell to get to whatever media/etc is attached to that cell in the table. (Imagine th

Re: After Autoreleasing Still Getting Leaked

2011-06-17 Thread Marcus Karlsson
On Jun 16, 2011, at 12:33 PM, Bing Li wrote: > Dear Conrad, Jens, Tony, Scott, Wade and all, > > I appreciate so much for your replies. I learn a lot from the interactions > with you. Since I am new, your patience is so valuable to me! > > I just got the problem. At least, right now, there is n

EXC_BAD_ACCESS searching PDF

2011-06-17 Thread Piero Campanelli
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com

Release a NSWindowController after the window is closed

2011-06-17 Thread Brian Norh
Hello. I'm building a Cocoa application and have a question about using window controllers. The idea is that when the user selects New from the File menu, an instance of MyWindowController which is a subclass of NSWindowController is created and a new window from MyWindow.xib is displayed. I'm ha

Re: Writing extremely large RTF or .doc files

2011-06-17 Thread Dave DeLong
Fair enough. This is certainly a great alternative to stripping out the document level attributes, but I'd still prefer the format to be as "native" as possible. Using HTML like this feels a bit kludgey. Dave Sent from my iPhone On Jun 17, 2011, at 10:45 PM, Ken Tozier wrote: > > On Jun 18

Re: Writing extremely large RTF or .doc files

2011-06-17 Thread Ken Tozier
On Jun 18, 2011, at 1:18 AM, Dave DeLong wrote: > It needs to be editable after the fact. > > Dave > It is. If you open such a file in Word, it just looks like styled text. You can edit it and save it as html or RTF. Whichever you prefer. Try saving the following to a plain text file, op

Re: Writing extremely large RTF or .doc files

2011-06-17 Thread Dave DeLong
On Jun 17, 2011, at 10:15 PM, Ken Tozier wrote: > Is there some reason the text needs to be RTF? Is it just that you want to > view this text formatted nicely at a future date? Or do you plan on > distributing the monster RTF? It needs to be editable after the fact. Dave _

Re: Writing extremely large RTF or .doc files

2011-06-17 Thread Ken Tozier
Is there some reason the text needs to be RTF? Is it just that you want to view this text formatted nicely at a future date? Or do you plan on distributing the monster RTF? If it's just nicely formatted text you're after would HTML with CSS serve just as well? If so, you could write an aggregat

Writing extremely large RTF or .doc files

2011-06-17 Thread Dave DeLong
Hey List, I'm writing a little app for myself to take a database full of text and format it into either a Word Document or an RTF document (either one is fine for my purposes). I've got it working for small datasets, but I'm running in to performance issues when trying to generate files larger

Re: Temporarily enabling layer backing for NSView

2011-06-17 Thread Indragie Karunaratne
Super late reply here, but I just tried that and it still doesn't work. It seems to work every now and then randomly but other times it doesn't work at all. Sounds like some sort of timing issue. On 2011-05-18, at 1:04 AM, Josh Abernathy wrote: > Try doing the animation one runloop after callin

Re: Drawing noise in Cocoa (preferably fast)

2011-06-17 Thread Stephen Blinkhorn
On 17 Jun 2011, at 19:45, Scott Ellsworth wrote: That seems a bit strange - have you put the code up somewhere? No, not yet. I might post something here over the weekend. It's puzzled me a bit for a year or so off and on now. Stephen Scott On Fri, Jun 17, 2011 at 4:24 PM, Stephen Blink

Branch: Drawing noise in Cocoa (preferably fast)

2011-06-17 Thread Ken Tozier
Keying off Stephen's idea of drawing noise quickly, I came up with a solution that I can use for my own purposes. It seems like splitting up large image manipulations for execution on different processor cores could be a good introduction to GCD and blocks. I read the intro to GCD docs but am st

Re: Drawing noise in Cocoa (preferably fast)

2011-06-17 Thread Scott Ellsworth
That seems a bit strange - have you put the code up somewhere? Scott On Fri, Jun 17, 2011 at 4:24 PM, Stephen Blinkhorn wrote: > > On 17 Jun 2011, at 10:30, Stephen Blinkhorn wrote: > >> Saying that, I've found that the CPU requirements of the raw drawing code >> (even with relatively fast refre

Re: Weird Crash in

2011-06-17 Thread Laurent Daudelin
On Jun 17, 2011, at 15:51, Greg Parker wrote: > On Jun 17, 2011, at 3:48 PM, Laurent Daudelin wrote: > >> On Jun 17, 2011, at 15:22, Greg Parker wrote: >> >>> On Jun 17, 2011, at 2:40 PM, Laurent Daudelin wrote: One of my user sent me a crash log with an excerpt here: ... Ex

Re: Drawing noise in Cocoa (preferably fast)

2011-06-17 Thread Stephen Blinkhorn
On 17 Jun 2011, at 10:30, Stephen Blinkhorn wrote: Saying that, I've found that the CPU requirements of the raw drawing code (even with relatively fast refresh rates of 20-25 FPS) pales into insignificance when compared to the objective-c messaging overhead of co-ordinating the redrawing.

Re: Weird Crash in

2011-06-17 Thread Greg Parker
On Jun 17, 2011, at 3:48 PM, Laurent Daudelin wrote: > On Jun 17, 2011, at 15:22, Greg Parker wrote: > >> On Jun 17, 2011, at 2:40 PM, Laurent Daudelin wrote: >>> One of my user sent me a crash log with an excerpt here: >>> >>> ... >>> Exception Type: EXC_BAD_ACCESS (SIGSEGV) >>> Exception Cod

Re: Weird Crash in

2011-06-17 Thread Laurent Daudelin
On Jun 17, 2011, at 15:22, Greg Parker wrote: > On Jun 17, 2011, at 2:40 PM, Laurent Daudelin wrote: >> One of my user sent me a crash log with an excerpt here: >> >> ... >> Exception Type: EXC_BAD_ACCESS (SIGSEGV) >> Exception Codes: KERN_INVALID_ADDRESS at 0x0027 >> ... >> Thread 4

Re: Weird Crash in

2011-06-17 Thread Greg Parker
On Jun 17, 2011, at 2:40 PM, Laurent Daudelin wrote: > One of my user sent me a crash log with an excerpt here: > > ... > Exception Type: EXC_BAD_ACCESS (SIGSEGV) > Exception Codes: KERN_INVALID_ADDRESS at 0x0027 > ... > Thread 4 Crashed: Dispatch queue: com.apple.root.default-priori

Re: Problem Using StandardLibrary in XCode

2011-06-17 Thread Kyle Sluder
Your question is not related to Cocoa. You should either ask on the xcode-users forum, or in a forum related to SoundFlower. --Kyle Sluder On Fri, Jun 17, 2011 at 2:31 PM, Alex Flecher wrote: > Hi, > > I am working on a kext based on SoundFlower and have used the source from > http:[//]anonymous

Weird Crash in

2011-06-17 Thread Laurent Daudelin
One of my user sent me a crash log with an excerpt here: ... Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0027 ... Thread 4 Crashed: Dispatch queue: com.apple.root.default-priority 0 libobjc.A.dylib 0x7fff85ea115c objc_

Problem Using StandardLibrary in XCode

2011-06-17 Thread Alex Flecher
Hi, I am working on a kext based on SoundFlower and have used the source from http:[//]anonymous@soundflower [dot] googlecode [dot] com[/]svn However i am not able to use the standard c++ library. The compiler throws error #include gives error-> iostream: no such file or directory. However if i c

Re: Making NSCache evict only unreferenced objects

2011-06-17 Thread Jens Alfke
On Jun 17, 2011, at 11:28 AM, Chris Hanson wrote: > Rather than reinventing all of this yourself, you should just use Core Data. > It provides both the uniquing and the database call minimization you're > looking for, and a lot else besides. This is for an Objective-C API to CouchDB, not to sql

Re: Making NSCache evict only unreferenced objects

2011-06-17 Thread Chris Hanson
On Jun 17, 2011, at 9:40 AM, Jens Alfke wrote: > Basically this is a cache of database records, where the dictionary key is > the primary key and the value is a parsed version of the row data. I want to > cache these to minimize database calls. I also want to ensure that the value > objects are

Making NSCache evict only unreferenced objects

2011-06-17 Thread Jens Alfke
I have what seems like an excellent use case for NSCache, only it doesn’t have quite the behavior I need. And I’m having trouble thinking of how to tweak it to get that behavior. In a nutshell: I want the cache to evict only objects that have no other references to them. So as long as something

Re: Drawing noise in Cocoa (preferably fast)

2011-06-17 Thread Stephen Blinkhorn
On 17 Jun 2011, at 00:18, Uli Kusterer wrote: On 17.06.2011, at 03:08, Ken Tozier wrote: On Jun 16, 2011, at 12:34 PM, Stephen Blinkhorn wrote: A quick test on a 2GHz iMac takes at least twice as long 4.5 seconds to generate a 10,000 X 10,000 CGLayer of noise. Stephen Thanks. Difference

Re: So... we can't use UIWebView (with a delegate) on a page that's pushed onto a UINavigationController stack?

2011-06-17 Thread David Duncan
On Jun 16, 2011, at 7:15 PM, G S wrote: > The delegate for the UIWebView is set up in the XIB file; it's pretty > hokey to have to intervene in code to then disassociate the view from > its delegate. Also, there is no "dealloc method where you dispose of > the UIWebView", because that's done auto

Re: NSString accessing characters

2011-06-17 Thread Quincey Morris
On Jun 17, 2011, at 04:19, Andreas Grosam wrote: > It does not convert at all. It can understand any Unicode encoding form, > though. Ah, OK, I misunderstood you to mean "parsing" in relation to the Unicode representation itself. That's not as silly as it sounds, because it's not entirely triv

Re: NSString accessing characters

2011-06-17 Thread Jens Alfke
On Jun 17, 2011, at 3:35 AM, Andreas Grosam wrote: > If possible, I would prefer to avoid any conversions performed by NSString as > a result of accessing the content in any way. The parser is capable to parse > any Unicode encoding form, so if possible, I just would take the NSString's > cont

Re: NSTextFieldDelegate issues

2011-06-17 Thread JAMES ROGERS
Wow! That was easy. Thank You! Jim On Jun 17, 2011, at 9:21 AM, Alexander Reichstadt wrote: > Try controlTextDidChange > > Am 17.06.2011 um 16:11 schrieb JAMES ROGERS: > >> I have an app with six (6) text fields. I need to know when the text in any >> of the text fields has changed so I can pr

Re: NSTextFieldDelegate issues

2011-06-17 Thread Alexander Reichstadt
Try controlTextDidChange Am 17.06.2011 um 16:11 schrieb JAMES ROGERS: > I have an app with six (6) text fields. I need to know when the text in any > of the text fields has changed so I can process them as a group. > > AppDelegate .h > @interface WK2CFGMacAppDelegate : NSObject NSTextFieldDele

NSTextFieldDelegate issues

2011-06-17 Thread JAMES ROGERS
I have an app with six (6) text fields. I need to know when the text in any of the text fields has changed so I can process them as a group. AppDelegate .h @interface WK2CFGMacAppDelegate : NSObject { outlets } actions - (void) textDidChange:(NSNotification *)aNotification; AppDelegate.

Re: Custom NSSlider

2011-06-17 Thread Nick
Thanks guys Depends on what you mean by "everyone" ... ? > > QTMovieView and NSMovieView and the likes have built-in controllers that > you can just use out of the box. Many places use that, however they look > kinda 10.4-ish. If you want some of the more modern looks (either like > Spotlight ha

Re: NSString accessing characters

2011-06-17 Thread Andreas Grosam
On Jun 17, 2011, at 11:05 AM, Quincey Morris wrote: > On Jun 17, 2011, at 00:46, Andreas Grosam wrote: > >> Given an NSString as input source, what is the fastest method to "feed" the >> parser? > > As usual, Ken's answer is better than the one I was composing, but I don't > think *any* answe

Re: pagingEnabled on NSScrollView?

2011-06-17 Thread Leonardo
Hi, thanks, it works. But now I get a new trouble: If I set setHasHorizontalScroller:NO, any scrollPoint: I call programmatically is not seen by the next drag. In details: within the method endGestureWithEvent: I call NSLog(@"endGesture %@", NSStringFromPoint([mClipView bounds].origin)); /

Re: NSString accessing characters

2011-06-17 Thread Andreas Grosam
Thank you Ken, for your valuable tips, On Jun 17, 2011, at 10:40 AM, Ken Thomases wrote: > On Jun 17, 2011, at 2:46 AM, Andreas Grosam wrote: > >> Given an NSString as input source, what is the fastest method to "feed" the >> parser? >> >> Also worth mentioning is the possible fact about hidd

Re: NSString accessing characters

2011-06-17 Thread Quincey Morris
On Jun 17, 2011, at 00:46, Andreas Grosam wrote: > Given an NSString as input source, what is the fastest method to "feed" the > parser? As usual, Ken's answer is better than the one I was composing, but I don't think *any* answer is of use to you unless you specify what representation your pa

Re: NSString accessing characters

2011-06-17 Thread Ken Thomases
On Jun 17, 2011, at 2:46 AM, Andreas Grosam wrote: > I've written a parser which can natively parse any Unicode encoding form > (UTF-8, UTF16 BE/LE, UTF-32 BE/LE). It takes iterators as input parameters, > that is (const) pointers to uint8_t, uint16t and uint32_t which are selected > according

NSString accessing characters

2011-06-17 Thread Andreas Grosam
Hi All, I've written a parser which can natively parse any Unicode encoding form (UTF-8, UTF16 BE/LE, UTF-32 BE/LE). It takes iterators as input parameters, that is (const) pointers to uint8_t, uint16t and uint32_t which are selected according the Unicode encoding form of the given input text.