Re: Opinion: Core Data or roll my own?

2014-04-08 Thread Mike Manzano
Depends. Why are you “fighting” Core Data? Mike On Apr 8, 2014, 3:13:12 PM, Rick Mann wrote: This may prove to be an unproductive question to pose, so I apologize in advance. I'm generally a big fan of Core Data, but I'm developing a moderately complicated CAD app with libraries and desig

Re: On handling those lovely unrecognized selector sent to instance SIGABRTs

2012-08-29 Thread Mike Manzano
Wow. Awesome. There should be a web page filled with these somewhere. On Aug 24, 2012, at 9:28 AM, Alex Zavatone wrote: > This is very eye opening and likely to be hugely time saving, especially with > those storyboard crashes where you're not in code. > > http://www.fruitstandsoftware.com/blo

Re: JSON Parser

2011-09-08 Thread Mike Manzano
I've also used SBJSON successfully. Mike Sent whilst mobile. On Sep 8, 2011, at 10:25 AM, Tom Hohensee wrote: > I have recently come across the need to handle JSON in an application I am > working on for 10.6 and 10.7. After googling for a parser I came across > several of them but some

Re: Dealloc'ing a serial GCD dispatch queue?

2010-09-01 Thread Mike Manzano
ence.html#//apple_ref/c/func/dispatch_release > > Dave > > On Sep 1, 2010, at 9:54 AM, Mike Manzano wrote: > >> This is probably a stupid question, but after I >> >> dispatch_queue_create() >> >> how do I clean up the q

Dealloc'ing a serial GCD dispatch queue?

2010-09-01 Thread Mike Manzano
This is probably a stupid question, but after I dispatch_queue_create() how do I clean up the queue when I'm done with it? Thanks! Mike ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: Getting a list of web browsers

2010-08-06 Thread Mike Manzano
Good stuff. Thanks guys, looks like that's exactly what I was looking for. Mike On Aug 4, 2010, at 5:36 PM, Ken Thomases wrote: > On Aug 4, 2010, at 7:31 PM, Nick Zitzmann wrote: > >> On Aug 4, 2010, at 6:24 PM, Mike Manzano wrote: >> >>> How would one go abou

Getting a list of web browsers

2010-08-04 Thread Mike Manzano
How would one go about getting a list of web browsers on the system? I'd like to implement a pull down menu similar to Safari's "Default web browser:" field. Thanks, Mike @instantvoodoo___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

NSAttributedString & iOS 4

2010-07-03 Thread Mike Manzano
I see that NSAttributedString is in iOS 4, but both UITextView nor UITextField's text property takes an NSString. Does that mean these views are off limits if I want to use an attributed string? Thanks, Mike___ Cocoa-dev mailing list (Cocoa-dev@lists

UITabBarItem's frame?

2010-04-13 Thread Mike Manzano
Hello, Is there a way to get a UITabBarItem's frame? I'd like to implement a popover-like menu whose "arrow" points to a particular UITabBarItem (on the iPhone, not iPad). However, UITabBarItems are not views and have no frame property. I noticed in the iPad API that the equivalent UIPopoverCon

Rotation UIWebView

2009-11-14 Thread Mike Manzano
reserve my "view". The text stays the same size, there's just more of the web page visible to the side. How do I get UIWebView to act like Safari? Thanks, Mike Manzano mike (at) instantvoodoomagic (dot) com @instantvoodoo (206) 462-2966 _

[SOLVED] Re: Displaying a view modally

2009-10-22 Thread Mike Manzano
dView by Buzz Andersen (http://github.com/ldandersen/scifihifi-iphone/blob/master/UI/SFHFHUDView.h ) Saurabh On Tue, Oct 20, 2009 at 5:26 PM, Mike Manzano > wrote: Hi, I'd like to display a busy indicator view (HUD) regardless of whatever view is currently at the top of the view st

Displaying a view modally

2009-10-20 Thread Mike Manzano
ions? I'd like to have some confirmation before I invest a bunch of time only to find out it's the wrong method. Thanks, Mike Manzano mike (at) instantvoodoomagic (dot) com http://instantvoodoomagic.com @instantvoodoo Oh BTW, the first reply that gets me closer to a solution gets a fr

[iPhone 3.0] crashes in webView:didCommitLoadForFrame:

2009-08-10 Thread Mike Manzano
Hi all, Quite a few of my beta testers are sending in crash reports where the crash is occurring in webView:didCommitLoadForFrame: Here's the whole stack trace: 0 libobjc.A.dylib 0x30011944 objc_msgSend + 24 1 UIKit 0x30af8900 - [UIWebVi

NSURLCache

2009-08-10 Thread Mike Manzano
Has anyone been able to successfully get the URL loading system on iPhone to pay attention to custom versions of NSURLCache? It seems to me that it's being ignored. More info here: http://stackoverflow.com/questions/1246420/need-content-in-uiwebview-to-display-quickly (See the second "answer

iPhone camera control like RedLaser

2009-07-08 Thread Mike Manzano
The RedLaser app overlays a display on the 3GS' video capture screen, and seems to be able to react to the video in real time. Are they using public APIs to do this? If so, I can't find them. Mike ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

Thin navigation & tool bars in landscape

2009-06-01 Thread Mike Manzano
How do you get the thin-style bars in landscape like Mail has? Mine doesn't do that automatically. I haven't been able to find an API or developer doc that mentions it. Mike Manzano Sent while mobile ___ Cocoa-dev mailing list

Re: -init never gets sent

2009-05-28 Thread Mike Manzano
How is your init defined? Mike Manzano Sent while mobile On May 28, 2009, at 4:34 PM, Erg Consultant wrote: I have an object which I initialize like this: gReg = [ [ Registry alloc ] init ]; Problem is, my init method never receives any message. Does anyone know what can cause this

CABasicAnimation leaking?

2009-05-28 Thread Mike Manzano
Hi all, I have some animation code that looks like this: CABasicAnimation *theAnimation = [CABasicAnimation animationWithKeyPath:@"position.x"] ; NSLog( @"ANIMATION: started %x" , theAnimation ) ; theAnimation.removedOnCompletion = YES ; theAnimation.duration = 0.125f

Cancelling an animation in a UITableViewCell was Re: UITableViewCell instances

2009-05-18 Thread Mike Manzano
that NSIndexPath is currently visible and you can also retrieve the UITableViewCell that goes with that by calling cellForRowAtIndexPath: Luke On May 15, 2009, at 1:33 PM, Mike Manzano wrote: Okay, so each row is its own cell instance, and when a cell goes off-screen UITableView re-queu

Re: UITableViewCell instances

2009-05-15 Thread Mike Manzano
ry footprint down. Dave On May 15, 2009, at 8:52 AM, Mike Manzano wrote: In the template UITableViewController that instantiates cells by first attempting to dequeue them, is that same dequeued cell used to draw all visible rows, or is there a separate cell used for each row? The docs I

UITableViewCell instances

2009-05-15 Thread Mike Manzano
it's obvious in that case that the cells are different. If it's the case that only one cell is used, then how do you handle the state related to, e.g., animating or touch tracking? Mike Manzano Sent while mobile ___ Cocoa-dev mailing

Re: UIToolbar setItems:animated: broken?

2009-05-06 Thread Mike Manzano
s there, please file a bug report. Luke On May 6, 2009, at 12:00 AM, Mike Manzano wrote: Regardless of whether I supply YES or NO for the animated: parameter, the toolbar doesn't animate the change in items. Is this broken? If so, what's the workaround (I know I've seen th

UIToolbar setItems:animated: broken?

2009-05-06 Thread Mike Manzano
Regardless of whether I supply YES or NO for the animated: parameter, the toolbar doesn't animate the change in items. Is this broken? If so, what's the workaround (I know I've seen this implemented in other apps). Thanks, Mike smime.p7s Description: S/MIME cryptographic signature ___

Re: drawing image

2009-05-04 Thread Mike Manzano
It's inverted because of differences in coordinate systems between the image and the view it's being draw into. Before you draw the image, invert it: [[self image] setInverted:YES] ; On May 4, 2009, at 12:25 PM, Livio Isaia wrote: I have a custom NSButtonCell named MyButtonCell with a drawi

Re: NSXMLParser frees itself on error?

2009-05-04 Thread Mike Manzano
ick the release there. Thank you all for the responses! Mike On Apr 30, 2009, at 11:59 PM, Mike Manzano wrote: Hi Folks, I have an NSXMLParser doing parsing the contents of a URL. It is allocated like this: _showsParser = [[NSXMLParser alloc] initWithContentsOfURL:url]; Given

UIWebView w/o the scrolling?

2009-05-04 Thread Mike Manzano
Is it possible to have a web view that doesn't scroll? I'd like to embed a web view in a table cell and have the table view machinery take care of the scrolling. The effect I'm after is for the user to touch a cell in a table, and have that table visually expand to show a rendered HTML page

NSXMLParser frees itself on error?

2009-05-01 Thread Mike Manzano
Hi Folks, I have an NSXMLParser doing parsing the contents of a URL. It is allocated like this: _showsParser = [[NSXMLParser alloc] initWithContentsOfURL:url]; Given a good URL to a parsable XML document, its parserDidEndDocument: method calls this method: - (void) cleanupShowPar

[SOLVED] Re: NSView modifies CALayer's masksToBounds?

2009-04-16 Thread Mike Manzano
That did it. Thanks! One last question. If I supply my own layer, is it legal to add subviews to the view that's hosting my layer? On Apr 16, 2009, at 6:46 PM, Kyle Sluder wrote: On Thu, Apr 16, 2009 at 9:17 PM, Mike Manzano wrote: [theView setLayer: theRootLayer]; [th

Re: NSView modifies CALayer's masksToBounds?

2009-04-16 Thread Mike Manzano
o the view after I call -setWantsLayer on it. How is this layer different from theRootLayer in the example? Thanks, Mike On Apr 16, 2009, at 5:33 PM, Kyle Sluder wrote: On Thu, Apr 16, 2009 at 7:14 PM, Mike Manzano wrote: Is there a way to stop an NSView from modifying its CALayer's

NSView modifies CALayer's masksToBounds?

2009-04-16 Thread Mike Manzano
Is there a way to stop an NSView from modifying its CALayer's masksToBounds property? It looks like it's making the change during a frame resize. It's making a call to some internal selector called _updateLayerMasksToBoundsFromView. AFAIK, there's no way to turn on or off masking from the

[SOLVED] Re: NSTableColumn's sort key in Interface Builder

2009-03-30 Thread Mike Manzano
Doh! On Mar 30, 2009, at 1:00 PM, Corbin Dunn wrote: On Mar 30, 2009, at 12:16 PM, Mike Manzano wrote: Hello, I have a table view whose delegate's - tableView:objectValueForTableColumn:row: returns an NSDictionary with key value pairs that look like this for each of its columns

NSTableColumn's sort key in Interface Builder

2009-03-30 Thread Mike Manzano
Hello, I have a table view whose delegate's - tableView:objectValueForTableColumn:row: returns an NSDictionary with key value pairs that look like this for each of its columns (the columns' cells are responsible for extracting some subset of this dictionary to display to the user): {

[SOLVED] Re: setFrame: not working in custom event loop

2009-03-11 Thread Mike Manzano
tract from the other -- maintaining constant total width. --Andy On Mar 11, 2009, at 2:17 PM, Mike Manzano wrote: Well, I just rewrote it, and it's doing exactly the same thing. You can see this from the debug output: 2009-03-11 11:15:50.092 SkootUI[13145:10b] Will Set To: {{0, 0},

Re: setFrame: not working in custom event loop

2009-03-11 Thread Mike Manzano
romView:nil].x : [self convertPoint:[theEvent locationInWindow] fromView:nil].x ; } On Mar 11, 2009, at 10:52 AM, Mike Manzano wrote: Nope that didn't do it. Same symptoms. Any other ideas before I throw in the gauntlet and rewrite it? On Mar 10, 2009, at 5:41 PM, Jesper St

Re: setFrame: not working in custom event loop

2009-03-11 Thread Mike Manzano
ustom sub-class). Jesper Storm Bache On Mar 10, 2009, at 2:51 PM, Mike Manzano wrote: Hi, I am tracking the mouse pointer to dynamically resize a splitter as a separate drag handle is dragged. This is done in mouseDown: of the drag handle with a custom event loop. The loop looks like this:

Re: setFrame: not working in custom event loop

2009-03-10 Thread Mike Manzano
able to simply listen for mouseDragged, mouseDown, and mouseUp on your split view (if this is a custom sub-class). Jesper Storm Bache On Mar 10, 2009, at 2:51 PM, Mike Manzano wrote: Hi, I am tracking the mouse pointer to dynamically resize a splitter as a separate drag handle is dragged.

setFrame: not working in custom event loop

2009-03-10 Thread Mike Manzano
Hi, I am tracking the mouse pointer to dynamically resize a splitter as a separate drag handle is dragged. This is done in mouseDown: of the drag handle with a custom event loop. The loop looks like this: while (keepOn) { NSAutoreleasePool *pool = [[NSAutoreleasePool all

Getting a Unique File ID from MDItem

2009-02-18 Thread Mike Manzano
Hi all, I'm doing some MDQuery stuff in my application, and it's working to the point where I'm getting the appropriate notifications for additions and removals to the subset of files that satisfy my query. When I get these notifications, there's a list of MDItemRefs in the notification'

NSApplication releases top-level nib objects?

2008-10-03 Thread Mike Manzano
The docs say that NSApplicationMain: "Creates the application, loads the main nib file from the application’s main bundle, and runs the application." Who is responsible for releasing the objects in the main bundle when the app quits? Is it safe to not release them since the application is

Distributed Objects (DO, a.k.a. PDO) on Windows

2008-09-19 Thread Mike Manzano
Forgive me if this is not quite on topic. Is there a Windows library that allows Windows programs to vend objects in the same way they can be vended on a Mac? Thanks, Mike ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Transfer progress for objects fetched from a vended object

2008-09-19 Thread Mike Manzano
Let's say that I have a vended object that has a method that returns an NSArray whose contents are large. Let's say that I'm calling this method from another application over a network. As the transfer of the NSArray over the network might take a while, I'd like to display a progress bar. C

[SOLVED[ Re: Properties and memory management

2008-08-04 Thread Mike Manzano
messages manually if you access the instance variable directly (not through a property). The only place you would typically need to do that would be in your dealloc method. Jon Hess On Aug 4, 2008, at 8:51 PM, Mike Manzano wrote: Hi, Sorry about this cross-post, but the obj-c language

Properties and memory management

2008-08-04 Thread Mike Manzano
Hi, Sorry about this cross-post, but the obj-c language list seems sort of dead. If I have a property: @property( retain ) NSString *blah ; and in my code I assign it: myObj.blah = @"woot!" ; and then I want to reassign it, do I have to release it? [myObj.blah release] ; myObj.blah = @"n

Re: xml parsing

2008-06-13 Thread Mike Manzano
Try posting some code. On Jun 13, 2008, at 1:54 PM, Bart Beulen wrote: Hi All I'm new to cocoa and working on an xml parser. I would like to parse xml files like the following example bla bla imag1 http://www.blabla.com bla bla2 imag2 http://

Re: Unvending a distributed object

2008-06-11 Thread Mike Manzano
, 2008, at 4:09 PM, Ken Thomases wrote: On Jun 11, 2008, at 6:05 PM, Mike Manzano wrote: Does anyone know how to unvend an object? I found this thread on the list: http://lists.apple.com/archives/Cocoa-dev/2002/Mar/msg00710.html but it didn't seem to have any definitive answer. Am

Unvending a distributed object

2008-06-11 Thread Mike Manzano
Hello, Does anyone know how to unvend an object? I found this thread on the list: http://lists.apple.com/archives/Cocoa-dev/2002/Mar/msg00710.html but it didn't seem to have any definitive answer. Am I missing something obvious? Thanks, Mike ___

Re: CGContextSetRGBFillColor() off by one?

2008-05-29 Thread Mike Manzano
After playing with it some more I think it might be a floating point precision error. On May 29, 2008, at 9:40 PM, Uli Kusterer wrote: Am 29.05.2008 um 23:17 schrieb Mike Manzano: I just tried running it on an old PowerBook, and I get the same results. Do you know for sure that ColorSync

Re: CGContextSetRGBFillColor() off by one?

2008-05-29 Thread Mike Manzano
I just tried running it on an old PowerBook, and I get the same results. Do you know for sure that ColorSync is in play here? Thanks, Mike On May 29, 2008, at 2:40 AM, Uli Kusterer wrote: Am 29.05.2008 um 09:21 schrieb Mike Manzano: Regardless of what I set the red component to, the value

CGContextSetRGBFillColor() off by one?

2008-05-29 Thread Mike Manzano
Hi there, I have this code: CGContextSetRGBFillColor(cref, 0xaa/255.0, 0xb0/255.0,0xc0/255.0, 1) ; CGContextFillRect(cref, CGRectMake(0, 0, w, h)) ; CGContextFlush(cref) ; Later on, I get the image buffer to print out the contents of the first pixel: unsigne

Re: Saving NSTextView data to CoreData without ending editing

2008-04-25 Thread Mike Manzano
rner wrote: When you say you are "ending editing" what do you mean? Are you using commitEditing? Wil On Apr 22, 2008, at 12:26 PM, Mike Manzano wrote: I have an application that periodically needs to save content contained in an NSTextView. The text view is bound to a Core Data manag

Saving NSTextView data to CoreData without ending editing

2008-04-22 Thread Mike Manzano
I have an application that periodically needs to save content contained in an NSTextView. The text view is bound to a Core Data managed object. Currently, I am ending editing on the text view to force it to save its contents into the store. However, since I'm doing it automatically on a tim

Re: editing in a custom NSView

2008-04-18 Thread Mike Manzano
NSTableView: tableView:heightOfRow: Returns the height of row in tableView. - (CGFloat)tableView:(NSTableView *)tableView heightOfRow:(NSInteger)row Discussion You should implement this method if your table supports varying row heights. The height returned should not include intercell spacing

Implicit animation duration

2008-04-17 Thread Mike Manzano
Is there an easy way to change the duration of an implicit animation-- the kind you get when you do something like this? [[myWindow animator] setFrame:newFrame display:NO] ; Thanks, Mike ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Memory leak when re-alloc Methods

2008-04-15 Thread Mike Manzano
Unless you perform [blisterModelClass release] in your NSView's - dealloc, you are still potentially leaking. Mike On Apr 15, 2008, at 5:17 PM, Mario Gajardo Tassara wrote: El 15-04-2008, a las 14:21, [EMAIL PROTECTED] escribió: I have a nasty leak problem when i realloc several methods of