Re: Sensible NSMultipleValuesMarker placeholder alternatives?

2012-07-17 Thread Quincey Morris
On Jul 16, 2012, at 23:34 , Markus Spoettl wrote: > What is more problematic is that if an edit field which displays the > placeholder looses first responder, the model values are set to nil. There are 2 bindings options that should let you control this behavior: "allows editing multiple values

Re: Core Data Multiuser

2012-07-17 Thread Thorsten Hohage
On Mon, 16 Jul 2012 14:39:42 -0700, Jens Alfke wrote: > (1) Client-server. The database lives on one server machine, as does the > "business logic" (I hate that term) that manages your app. This could > definitely be implemented with Core Data if you like. The client app just > focuses on the

Re: Sensible NSMultipleValuesMarker placeholder alternatives?

2012-07-17 Thread Markus Spoettl
On 7/17/12 9:35 AM, Quincey Morris wrote: On Jul 16, 2012, at 23:34 , Markus Spoettl wrote: What is more problematic is that if an edit field which displays the placeholder looses first responder, the model values are set to nil. There are 2 bindings options that should let you control this b

looking for a memory problem

2012-07-17 Thread Martin Hewitson
Dear list, I've been trying to track down a crash that happens sometimes when a document is closed in my NSPersistentDocument based app. This started to appear during the process of going from GC to non-GC. But it only happens after an undetermined number of document closes and reopens. The er

Re: looking for a memory problem

2012-07-17 Thread Mike Abdullah
Have you tried using the zombies instrument? On 17 Jul 2012, at 11:30, Martin Hewitson wrote: > Dear list, > > I've been trying to track down a crash that happens sometimes when a document > is closed in my NSPersistentDocument based app. This started to appear during > the process of going

Re: looking for a memory problem

2012-07-17 Thread Charlie Dickman
I've seen this kind of thing before when I have released an object that was allocated in the autorelease pool. Have a go over of the objects you release and make sure that you own them when you release them. On Jul 17, 2012, at 6:30 AM, Martin Hewitson wrote: > Dear list, > > I've been trying

Re: Core Data Multiuser

2012-07-17 Thread Flavio Donadio
Chris, I already took a look at NSIncrementalStore and it seems to solve one of my problems. I am fairly good with PHP, but I could always create a web service with Rails or something else... One of my gripes with using HTTP as the client-server base protocol is the request-response loop. Thi

Re: looking for a memory problem

2012-07-17 Thread Martin Hewitson
Thanks to all. Due to the various clues and tips I finally tracked down the problem. I was creating a bunch of autoreleased objects within an autorelease pool of an NSOperation then storing them. But of course, when the pool is drained they all get released and boom! Thanks, Martin On 17, Jul

Re: looking for a memory problem

2012-07-17 Thread Martin Hewitson
Actually, to follow up a little. This is what I was doing: Within the operation's main I create a bunch of autoreleased objects and put this in an autoreleased array. In (very) rough code I do: @property (retain) NSArray *words; NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; NSArr

Re: looking for a memory problem

2012-07-17 Thread Ken Thomases
On Jul 17, 2012, at 9:39 AM, Martin Hewitson wrote: > @property (retain) NSArray *words; > > NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; > > NSArray *someWords = [self > generateABunchOfAutoReleasedObjectsInAnAutoreleasedArray]; You may be doing something wrong in -generateABu

Re: looking for a memory problem

2012-07-17 Thread Fritz Anderson
On 17 Jul 2012, at 9:39 AM, Martin Hewitson wrote: > So I must not be understanding something (likely) because I thought that the > autoreleased objects get retained when I add them to the autoreleased array. > Then when I set the array to the property, it gets retained and so draining > the po

Re: looking for a memory problem

2012-07-17 Thread Sean McBride
On Tue, 17 Jul 2012 12:30:39 +0200, Martin Hewitson said: >This started to appear during the process of going from GC to non-GC. What do you mean "non-GC"? I strongly suggest going from GC to ARC, not from GC back to the stone-age retain-release. Although quite different 'under the hood', wri

Re: looking for a memory problem

2012-07-17 Thread Charlie Dickman
What is ARC and where can I read learn about it? On Jul 17, 2012, at 11:42 AM, Sean McBride wrote: > On Tue, 17 Jul 2012 12:30:39 +0200, Martin Hewitson said: > >> This started to appear during the process of going from GC to non-GC. > > What do you mean "non-GC"? I strongly suggest going from

Re: looking for a memory problem

2012-07-17 Thread Fritz Anderson
On 17 Jul 2012, at 10:26 AM, Fritz Anderson wrote: > How many claims (… container insertions …) on an object does _your_ code > make…? And here's an example of the kind of thinking I was advising you against. That containers almost always retain their contents is a detail in the container cla

Re: looking for a memory problem

2012-07-17 Thread Charlie Dickman
Never mind. It originates in Xcode 4 and I don't use Xcode 4. On Jul 17, 2012, at 11:52 AM, Charlie Dickman wrote: > What is ARC and where can I read learn about it? > > On Jul 17, 2012, at 11:42 AM, Sean McBride wrote: > >> On Tue, 17 Jul 2012 12:30:39 +0200, Martin Hewitson said: >> >>> This

Re: looking for a memory problem

2012-07-17 Thread Sean McBride
On Tue, 17 Jul 2012 11:52:56 -0400, Charlie Dickman said: >What is ARC and where can I read learn about it? Googling "ARC Cocoa" should find you your answer. Here's a starting point:

Re: looking for a memory problem

2012-07-17 Thread Sean McBride
On Tue, 17 Jul 2012 12:03:49 -0400, Charlie Dickman said: >Never mind. It originates in Xcode 4 and I don't use Xcode 4. Then I suggest staying with GC. Why do you want to switch away from GC? Yes, it's deprecated, but so is Xcode 3, so -- Sean

Re: looking for a memory problem

2012-07-17 Thread Martin Hewitson
On 17, Jul, 2012, at 05:42 PM, Sean McBride wrote: > On Tue, 17 Jul 2012 12:30:39 +0200, Martin Hewitson said: > >> This started to appear during the process of going from GC to non-GC. > > What do you mean "non-GC"? I strongly suggest going from GC to ARC, not from > GC back to the stone-ag

Re: looking for a memory problem

2012-07-17 Thread Martin Hewitson
On 17, Jul, 2012, at 05:26 PM, Fritz Anderson wrote: > >> Could the problem be that I'm using the shared spell checker on multiple >> threads? > > YES. At least it's a very big item on your list of problems. I haven't found > any documentation that affirmatively says NSSpellChecker is thread

Re: looking for a memory problem

2012-07-17 Thread Martin Hewitson
So my potential solution for this is: NSSpellChecker *checker = [NSSpellChecker sharedSpellChecker]; __block NSRange range = NSMakeRange(0, 0); while (range.location < [aString length]) { dispatch_sync(dispatch_get_main_queue(), ^{ range = [checker checkSpellingOfString:aString

Re: Sensible NSMultipleValuesMarker placeholder alternatives?

2012-07-17 Thread Quincey Morris
On Jul 17, 2012, at 02:43 , Markus Spoettl wrote: > I'm not sure I follow. I do want multiple selection editing, just in a more > user-friendly fashion. Those options prevent multi-selection multi-value > editing, right? What am I not getting? Ah, I see. I don't think you aren't getting anythin

Re: Sensible NSMultipleValuesMarker placeholder alternatives?

2012-07-17 Thread Kyle Sluder
On Tue, Jul 17, 2012, at 10:13 AM, Quincey Morris wrote: > 1. Detect when the text field is really being edited. That probably means > you can't bind the field through the array controller directly to your > data model. Instead, bind it to an intermediate property in (say) your > window controller,

Re: Core Data Multiuser

2012-07-17 Thread Jens Alfke
On Jul 17, 2012, at 7:05 AM, Flavio Donadio wrote: > One of my gripes with using HTTP as the client-server base protocol is the > request-response loop. This breaks a lot of desirable features. In my > particular case, I want my users to receive "real-time" updates when other > users edit rec

Help with strange NSInvalidArgumentException

2012-07-17 Thread Sean McBride
Hi all, I've had two customer reports of the exception below. My code is not in the backtrace, so I'm not sure how to figure this one out. Anyone recognise anything here? NSInvalidArgumentException +[NSInvocation invocationWithMethodSignature:]: method signature argument cannot be nil

How to get a Service into the "Search" group?

2012-07-17 Thread Andy Lee
I've added a system service to my app. I'd like it to appear in the "Search" group of the Services menu (where "Look Up in Dictionary" and "Search With Google" are) rather than the "Text" group. I would have guessed there is some key-value pair I could set in the NSServices dictionary in Info.p

Re: Core Data Multiuser

2012-07-17 Thread Chris Hanson
On Jul 17, 2012, at 7:05 AM, Flavio Donadio wrote: > I already took a look at NSIncrementalStore and it seems to solve one of my > problems. I am fairly good with PHP, but I could always create a web service > with Rails or something else… On the client side, it doesn’t matter what you use on

Re: Sensible NSMultipleValuesMarker placeholder alternatives?

2012-07-17 Thread Markus Spoettl
On 7/17/12 7:58 PM, Kyle Sluder wrote: On Tue, Jul 17, 2012, at 10:13 AM, Quincey Morris wrote: 1. Detect when the text field is really being edited. That probably means you can't bind the field through the array controller directly to your data model. Instead, bind it to an intermediate propert

NSArrayController not rearranging correctly

2012-07-17 Thread Markus Spoettl
Hello, I have an NSArrayController (automaticallyRearrangesObjects = YES) on which I set a filterPredicate in code (not through bindings). Most of the time, rearranging works but in one 100% reproducible case, the controller produces an empty arrangedObjects array when it should produce a no

How can I convince an NSBigMutableString to become a mere NSAttributedString ?

2012-07-17 Thread Erik Stainsby
I'm working with the text from a multiline NSTextField. When it arrives in the delegate it is represented in an NSBigMutableString. Casting this to a NSAttributedString seems to have no effect on the actual class being used by the NSString cluster. I can't seem to find any documentation on NSB

Re: How can I convince an NSBigMutableString to become a mere NSAttributedString ?

2012-07-17 Thread David Duncan
On Jul 17, 2012, at 4:58 PM, Erik Stainsby wrote: > I'm working with the text from a multiline NSTextField. When it arrives in > the delegate it is represented in an NSBigMutableString. Casting this to a > NSAttributedString seems to have no effect on the actual class being used by > the NSStr

Re: NSArrayController not rearranging correctly

2012-07-17 Thread Ken Thomases
On Jul 17, 2012, at 4:41 PM, Markus Spoettl wrote: > I have an NSArrayController (automaticallyRearrangesObjects = YES) on which > I set a filterPredicate in code (not through bindings). Most of the time, > rearranging works but in one 100% reproducible case, the controller produces > an empty

Re: How can I convince an NSBigMutableString to become a mere NSAttributedString ?

2012-07-17 Thread Erik Stainsby
Sorry I should have said a little more about my context. I'm looking at the object passed to the delegate method -control:isValidObject: Documentation states: "In validating, the delegate should check the value in the object parameter…" I am however unable to assess the value since it is being

Re: How can I convince an NSBigMutableString to become a mere NSAttributedString ?

2012-07-17 Thread Ken Thomases
On Jul 17, 2012, at 6:58 PM, Erik Stainsby wrote: > I'm working with the text from a multiline NSTextField. When it arrives in > the delegate it is represented in an NSBigMutableString. The fact that you felt compelled to investigate its actual dynamic class is a sign that you're on the wrong t

Re: How can I convince an NSBigMutableString to become a mere NSAttributedString ?

2012-07-17 Thread David Duncan
On Jul 17, 2012, at 5:19 PM, Erik Stainsby wrote: > Sorry I should have said a little more about my context. I'm looking at the > object passed to the delegate method -control:isValidObject: > Documentation states: "In validating, the delegate should check the value in > the object parameter…"

Re: NSArrayController not rearranging correctly

2012-07-17 Thread Mike Abdullah
On 17 Jul 2012, at 22:41, Markus Spoettl wrote: > Hello, > > I have an NSArrayController (automaticallyRearrangesObjects = YES) on which > I set a filterPredicate in code (not through bindings). Most of the time, > rearranging works but in one 100% reproducible case, the controller produces

Re: Help with strange NSInvalidArgumentException

2012-07-17 Thread Mike Abdullah
Does anything in your code call -commitEditingWithDelegate:didCommitSelector:contextInfo: ? On 17 Jul 2012, at 20:46, Sean McBride wrote: > Hi all, > > I've had two customer reports of the exception below. My code is not in the > backtrace, so I'm not sure how to figure this one out. Anyone

Re: looking for a memory problem

2012-07-17 Thread Mike Abdullah
On 17 Jul 2012, at 18:10, Martin Hewitson wrote: > So my potential solution for this is: > > NSSpellChecker *checker = [NSSpellChecker sharedSpellChecker]; > __block NSRange range = NSMakeRange(0, 0); > while (range.location < [aString length]) { > >dispatch_sync(dispatch_get_main_queue(),

Re: How can I convince an NSBigMutableString to become a mere NSAttributedString ?

2012-07-17 Thread Erik Stainsby
Thanks for filling in my knowledge gap, Ken. I think between what you and Dave have said, I've realised that I am trying to do too much with the object passed in to -control:isValidObject: I was on my way to line-parsing the attributed string to determine if the user-added content is validly fo

Re: How can I convince an NSBigMutableString to become a mere NSAttributedString ?

2012-07-17 Thread Mike Abdullah
On 18 Jul 2012, at 01:19, Erik Stainsby wrote: > Sorry I should have said a little more about my context. I'm looking at the > object passed to the delegate method -control:isValidObject: > Documentation states: "In validating, the delegate should check the value in > the object parameter…"

Re: How can I convince an NSBigMutableString to become a mere NSAttributedString ?

2012-07-17 Thread Charles Srstka
On Jul 17, 2012, at 6:58 PM, Erik Stainsby wrote: > I'm working with the text from a multiline NSTextField. When it arrives in > the delegate it is represented in an NSBigMutableString. Casting this to a > NSAttributedString seems to have no effect on the actual class being used by > the NSStri

Re: looking for a memory problem

2012-07-17 Thread Shane Stanley
On 18/07/2012, at 1:42 AM, Sean McBride wrote: > writing for GC and ARC is not so different, and you can even switch over > slowly Could you elaborate on what you mean by "switch over slowly"? I think I understand the idea if one is coming from manual reference counting, but I thought GC was e

Re: looking for a memory problem

2012-07-17 Thread Charles Srstka
On Jul 17, 2012, at 11:31 AM, Martin Hewitson wrote: > On 17, Jul, 2012, at 05:42 PM, Sean McBride wrote: > >> On Tue, 17 Jul 2012 12:30:39 +0200, Martin Hewitson said: >> >>> This started to appear during the process of going from GC to non-GC. >> >> What do you mean "non-GC"? I strongly sug

Re: looking for a memory problem

2012-07-17 Thread Martin Wierschin
> So my potential solution for this is: > > NSSpellChecker *checker = [NSSpellChecker sharedSpellChecker]; > __block NSRange range = NSMakeRange(0, 0); > while (range.location < [aString length]) { > >dispatch_sync(dispatch_get_main_queue(), ^{ > range = [checker checkSpellingOfString:aS

Looking for better solution than this old hack

2012-07-17 Thread Graham Cox
My app has floating palettes that generally set [NSPanel setBecomesKeyOnlyIfNeeded:YES]; Most of the time these palettes are therefore inactive, and yet provide a large number of useful controls that work as expected when operated. Problem is, a lot of these controls show the inactive state bec

Sizing NSTableView to data

2012-07-17 Thread Maury Markowitz
I am working on the ODBCkit's Query Tool to make it work across a wide variety of data sources - so far all the major commercial DB's, Firebird, MySQL and even SQLite! Got an ODBC target and test DB you'd like to test? Throw it my way! One problem that's come up in a couple of different places i

Re: NSSplitView question - how to implement my own "adjustViews" style method

2012-07-17 Thread Motti Shneor
Thanks Graham (Sigh…) I was beginning to think I'm stupid or something, struggling so hard with a UI element as ordinary as a Split-View. I have the feeling I "almost got it", and I even think I understand why and when delegate methods are being called. Rolling out my own SplitView doesn't se

Re: Intercepting spawned URL requests from UIWebView and caching the response

2012-07-17 Thread Jason Perkins
On Cocoa, You can intercept the WebView requests using a custom NSURLProtocol. There is a fairly complete example here: http://stackoverflow.com/questions/3155359/in-webkit-how-do-i-get-the-content-of-a-resource On Jun 20, 2012, at 1:08 AM, BareFeetWare wrote: > Hi all, > > I'm trying to de

Re: Intercepting spawned URL requests from UIWebView and caching the response

2012-07-17 Thread 尹佳冀
Hi, BareFeetWare NSURLProtocol is also can be used in iOS cocoatouch, you can check this example http://code.google.com/p/tkawebview/downloads/detail?name=tkaurlprotocol.zip&can=2&q= this is a open source url protocol, but still have some bug, 1. however I think you can use + requestIsCache

Drag and drop issue - CoreDragGetMouseLocation

2012-07-17 Thread Tamas Nagy
Hello List, I have an NSMatrix subclass, where I can drag and drop files from Finder. It works well in the most of the times, but sometimes I found it not working. The draggingEntered method never called, and I see the following error logged: Error in CoreDragGetMouseLocation: -1850 I don't fi

do you init your instance variables in init method or outside the class?

2012-07-17 Thread fly2never
I have a class Monkey like this: @interface Monkey : NSObject { NSString *name; NSMutableArray *foodLists; NSString *id; int age; } @property blah blah. my init method looks like this: Method 1 - (id)init { if ((self = [super init])) { name = [NSString string]; foodLists

Re: Trap mouse and keyboard events

2012-07-17 Thread Jason Perkins
Look for information on "event taps". But be aware that they don't work in the application sandbox, so you won't be able to submit your app to the Mac App Store. On Jun 25, 2012, at 1:56 AM, Abhijeet Singh wrote: > Hi,I want to perform some action in my application whenever user presses any >

Re: willDisplayOutlineCell of view-based NSOutlineView is not called

2012-07-17 Thread M Larsen
As the guy who provided this snippet, I just want to say that it has been fixed on SO in the hope that future users of that site don't get confused. Thanks for catching the missing call to super. M Larsen On 25 Jun 2012, at 22:32, Corbin Dunn wrote: > You really want to call [super didAddSu

Dumb drawing mistake somewhere...

2012-07-17 Thread William Squires
I've got 3 classes, ShapeView (NSView subclass), Shape (NSObject) and ShapeTest (the application delegate). ShapeView.h #import @class Shape; @interface ShapeView : NSView @property (nonatomic, retain) NSMutableArray *theShapes; -(void)addShape:(Shape *)theShape; @end ShapeView.m #import "

Creating an easily reusable NSViewController

2012-07-17 Thread Duncan Hume
I have been trying to find the best way to create a re-usable component that provides everything needed to configure a view and populate it with data. I several applications and windows where I want to place a table, without having to write lots of code in the windows. This is where I have got to

Need sample code for NSDocument / NSDocumentController

2012-07-17 Thread Keith Knauber
Please provide sample code for how to migrate from the deprecated - (id)openDocumentWithContentsOfURL:(NSURL *)absoluteURL display:(BOOL)displayDocument error:(NSError **)outError to the new approved -[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:] In our case, th

Help: Create, import and edit SVG object in Cocoa app

2012-07-17 Thread lupeiyu
Hello, I want to create SVG objects in my cocoa application using iPad Devices. And also I want to import and edit the created SVG objects. Can anyone help me how to do this? Besides I don't want to use UIWebView. My xcode version is 4.3.2, my Mac version is 10.7.4. Thanks~ //

Opinions on approach to dynamic UITableView creation?

2012-07-17 Thread Crispin Bennett
I've been thinking about the best way to approach one part of an iOS app. I need to generate editable 'forms' for instances of each of a potentially largish number of classes (starting at about 10, but more will be added in quick succession). To make adding new classes/forms simple, and avoid d

Opinions on approach to dynamic UITableView creation?

2012-07-17 Thread Crispin Bennett
I've been thinking about the best way to approach one part of an iOS app. I need to generate editable 'forms' for instances of each of a potentially largish number of classes (starting at about 10, but more will be added in quick succession). To make adding new classes/forms simple, and avoid d

Icon Overlay on Mac OSX

2012-07-17 Thread Alfian Busyro
Hi, I'm a newbie in Cocoa framework, XCode and also Obj-C. I'm still struggling to create an icon overlay in finder like the one in that dropbox did. During my investigation about this I found that dropbox was using injection method to the finder code using mach_star (https://github.com/rentzs

Re: ARC and reinterpret_cast

2012-07-17 Thread John McCall
>>> From: Rick Mann >>> Subject: ARC and reinterpret_cast? >>> Date: July 7, 2012 9:13:29 PM PDT >>> To: Cocoa-Dev List >>> >>> Hi. I'd like to write code like this: >>> >>> MyObject* foo = reinterpret_cast<__bridge MyObject*> (someVoidPointer); >>> >>> But the compiler doesn't like it. It

NSTextView does not display updated values from core-data

2012-07-17 Thread Joseph Jude
Hello all, I got two entities - blog & entries in the core-data model. There is a table view to display titles and depending on the title selected, on another pane the values for the selected entry (title, tags, content etc) are displayed. Here is my problem: When I modify the body content (which

Creating an easily reusable NSViewControlle

2012-07-17 Thread Duncan Hume
Apologies if this gets posted twice, I signed up last week and tried to post and so far it has not appeared on the list (moderation backlog?). I'm trying again from a different email address!! I have been trying to find the best way to create a re-usable component that provides everything need

Re: Save photo taken by UIImagePickerController

2012-07-17 Thread Vavelin Kevin
Hi Fritz, > By "no longer" called, I assume you mean that it had been called, but the > calls stopped coming. No i mean the function is never called. I've found something who can work perfectly but i need to reopen my PhotoLibrary for using the photo who was just taken. I'm waiting for this

Re: iChat plugin sample code ?

2012-07-17 Thread Jean-Daniel Dupas
I prefer to post it here as a 30kB attachment than giving a link to a 500MB archives that may be remove at any time ;-) Le 12 juil. 2012 à 14:14, Alex Zavatone a écrit : > And where might that be in case anyone else would find it useful? > > On Jul 12, 2012, at 4:33 AM, Jean-Daniel Dupas wrot

СoreGraphics text drawing performance

2012-07-17 Thread Nazar Bartosik
In order to have my text visible at any background I draw it twice: once in stroke mode and then once in fill mode. Code sample below: CGContextSetTextDrawingMode(ctx, kCGTextStroke);// Stroke mode [string drawAtPoint:point withFont:font]; CGContextSetTextDrawingMode(ctx, kCGTextFill);

icon overlay the official way

2012-07-17 Thread Alfian Busyro
Hi all, I trying to recreate what dropbox did with Icon overlay in Mac OSX. I found that dropbox use some hacks to that. I want to know that are there some official ways to do something like this ? Thanks, Alfian ___ Cocoa-dev mailing list (Cocoa-dev@

Re: looking for a memory problem

2012-07-17 Thread Lakshmi
Hi Martin, The issue exists in "[pool drain]" part of code. Hope these links might help you: http://developer.apple.com/library/mac/#technotes/tn2124/_index.html http://stackoverflow.com/questions/7194586/help-with-crash-log Regards, Lakshmi On 17-Jul-2012, at 4:00 PM, Martin Hewitson wrote:

iTunes Match vs DRM

2012-07-17 Thread Kevin Dixon
Hello, I am developing an application for iOS, which is accessing the users iPod library. I am using AVAssetReader to read the raw PCM data. To do this I must retrieve the asset URL with property MPMediaItemPropertyAssetURL. My understanding is that if the MPMediaItem is unplayable due to DRM it w

Re: Looking for better solution than this old hack

2012-07-17 Thread Graham Cox
On 18/07/2012, at 2:27 PM, Graham Cox wrote: > This no longer seems to work since some versions ago On further investigation, it is still being called (as of Lion). But it's still an undocumented hack. The particular thing that's bothering me the most is that I have a source-list outline vie

Re: do you init your instance variables in init method or outside the class?

2012-07-17 Thread Charles Srstka
On Jun 25, 2012, at 12:48 AM, fly2never wrote: > Then I call Monkey *m1 = [[Monkey alloc] init]; > and I call [m1.foodLists addObject:foo]; , it crashes. That won’t crash, because all instance variables are automatically initialized to nil. Sending the addObject: message to a nil object won’t cr

Re: do you init your instance variables in init method or outside the class?

2012-07-17 Thread Graham Cox
On 25/06/2012, at 3:48 PM, fly2never wrote: > Besides this two way to init instance variables, which one is the best > practice? Of course you initialize your instance variables in -init - THAT IS WHAT IT IS FOR! It's very bad practice to let code outside the object set up ivars, because th

Re: Sizing NSTableView to data

2012-07-17 Thread Kyle Sluder
On Thu, Jun 28, 2012, at 04:42 PM, Maury Markowitz wrote: > I am working on the ODBCkit's Query Tool to make it work across a wide > variety of data sources - so far all the major commercial DB's, Firebird, > MySQL and even SQLite! Got an ODBC target and test DB you'd like to test? > Throw it my wa

Re: Dumb drawing mistake somewhere...

2012-07-17 Thread Graham Cox
On 27/06/2012, at 5:42 AM, William Squires wrote: > [theShapePath moveToPoint:self.upperLeft]; > [theShapePath lineToPoint:self.upperLeft]; This path is a point, it has zero length, it won't draw anything (or possibly just a dot). What did you expect it to draw? --Graham __

Re: Help: Create, import and edit SVG object in Cocoa app

2012-07-17 Thread Graham Cox
On 06/07/2012, at 12:59 PM, lupeiyu wrote: > I want to create SVG objects in my cocoa application using iPad Devices. > > And also I want to import and edit the created SVG objects. > > > > Can anyone help me how to do this? LOL! I just spent more than five years on this and I'm still not

Re: looking for a memory problem

2012-07-17 Thread Martin Hewitson
On 18, Jul, 2012, at 04:17 AM, Martin Wierschin wrote: >> So my potential solution for this is: >> >> NSSpellChecker *checker = [NSSpellChecker sharedSpellChecker]; >> __block NSRange range = NSMakeRange(0, 0); >> while (range.location < [aString length]) { >> >> dispatch_sync(dispatch_get_m

Re: looking for a memory problem

2012-07-17 Thread Martin Hewitson
On 18, Jul, 2012, at 03:07 AM, Charles Srstka wrote: > On Jul 17, 2012, at 11:31 AM, Martin Hewitson wrote: > >> On 17, Jul, 2012, at 05:42 PM, Sean McBride wrote: >> >>> On Tue, 17 Jul 2012 12:30:39 +0200, Martin Hewitson said: >>> This started to appear during the process of going fro

Re: Icon Overlay on Mac OSX

2012-07-17 Thread Gideon King
You might like to check out CTBadge - there are a couple of minor memory issues in the current release which will be picked up in Xcode's analyze function, but apart from that, it will probably point you in the right direction. http://blog.oofn.net/2006/01/08/badging-for-everyone/ Regards Gid