Custom Fonts in UI Webview

2009-09-14 Thread Ben Lachman
face being deprecated on MobileSafari. I saw a lot of references to using Cufón (or similar), however that doesn't allow for copying or selection and the NYTimes app does. anyone know of a way to use a real custom font face in a UIWebView? Thanks, ->Ben -- Ben Lachman Acacia T

Re: Custom Fonts in UI Webview

2009-09-15 Thread Ben Lachman
On Sep 14, 2009, at 6:08 PM, Jens Alfke wrote: On Sep 14, 2009, at 2:43 PM, Ben Lachman wrote: I was looking at the NYTimes iPhone app today and noticing that it looks like they're using a UIWebView with a custom font (not sure what font though, anyone know?). I did some digging o

Re: Custom Fonts in UI Webview

2009-09-16 Thread Ben Lachman
ay to include custom fonts in the application bundle and then access them for use in a UIWebView. Best, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: blach...@mac.com twitter: @benlachman mobile: 740.590.0009 __

Re: Address Book-style editing

2009-10-05 Thread Ben Lachman
the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/blachman%40mac.com This email sent to blach...@mac.com -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com

Model index and Array Controller index

2009-07-23 Thread Ben Lachman
good method of doing this? Thanks, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: blach...@mac.com twitter: @benlachman mobile: 740.590.0009 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please d

Re: iPhone List? - few questions

2009-07-23 Thread Ben Lachman
You should look into the push notification API, it ends up being very similar to SMS (e.g. small payloads) and is directly developer accessible. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: blach...@mac.com twitter: @benlachman mobile: 740.590.0009

Re: Model index and Array Controller index

2009-07-23 Thread Ben Lachman
On Jul 23, 2009, at 6:51 PM, I. Savant wrote: On Jul 23, 2009, at 5:05 PM, Ben Lachman wrote: The problem I'm having is that I can't find a decent way of propagating index changes in the array controller back down to the model. Does anyone have a good method of doing this?

NSURLConnection performance on iPhone

2009-08-01 Thread Ben Lachman
data obj) and then every ~1MB I write it out to disk using my output stream. I do this because writing the stream to disk every time I received data was even slower. Thanks for any thoughts, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: blach...@mac.com

- [NSBitmapImageRep cacheDisplayInRect:toBitmapImageRep:] produces empty image

2009-08-19 Thread Ben Lachman
chunk of the image the size of the intersection of the visible area of view and the rect you'd get if targetRect was aligned to the bottom left (however view is flipped). Manipulating targetRect doesn't seem to help. I'm stumped, any ideas? ->Ben -- Be

Re: - [NSBitmapImageRep cacheDisplayInRect:toBitmapImageRep:] produces empty image

2009-08-19 Thread Ben Lachman
On Aug 19, 2009, at 8:45 PM, Adam R. Maxwell wrote: On Aug 19, 2009, at 2:50 PM, Ben Lachman wrote: I have an offscreen window containing a WebView that I'm using to generate web previews. My current code works beautifully and looks like this: NSView

Field editor for custom tableview cells contains wrong string

2009-08-20 Thread Ben Lachman
I'm working on a heavily customized cell for a table view and when editing the cell I keep getting values in the field editor from other rows. The incorrect value is generally from the previous edited cell. Has anyone seen this or found a workaround? Thanks, ->Ben -- Ben Lachma

Re: - [NSBitmapImageRep cacheDisplayInRect:toBitmapImageRep:] produces empty image

2009-08-20 Thread Ben Lachman
On Aug 19, 2009, at 11:49 PM, Adam R. Maxwell wrote: On Aug 19, 2009, at 8:39 PM, Ben Lachman wrote: On Aug 19, 2009, at 8:45 PM, Adam R. Maxwell wrote: On Aug 19, 2009, at 2:50 PM, Ben Lachman wrote: I have an offscreen window containing a WebView that I'm using to generat

Auto complete accepts on space, any way to change?

2009-08-28 Thread Ben Lachman
(cancel on escape already works)? Currently I'm only implementing - textView:completionsForPartialWordRange:indexOfSelectedItem:. I thought to override keyDown: but the problem is that the field editor is eating keystrokes. Thanks, ->Ben -- Ben Lachman Acacia Tree Software http://acaci

Unarchiving cells out of order.

2010-10-18 Thread Ben Lachman
f] unarchiving GradientButtonCell 2010-10-18 17:41:53.534 UI-test[54499:a0f] done. 2010-10-18 17:41:53.535 UI-test[54499:a0f] done. < this is where it set the old class back -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: blach...@mac.com twitter: @benlachman mobi

Re: Unarchiving cells out of order.

2010-10-18 Thread Ben Lachman
d set the class to your custom cell class name. Viola... less code, yay! Hope this helps someone. ->Ben On Oct 18, 2010, at 6:22 PM, Ben Lachman wrote: > Hi all. > > I have a work around for the problem that one runs into with custom > subclassed controls that use custom cell

Custom drawing in NSTokenField or replacement?

2010-10-21 Thread Ben Lachman
n how one might customize drawing for tokens in NSTokenField using all public APIs? Alternatively, if there's a token field replacement out there floating around I'd love to hear about it. Thanks, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: blach...@

Any way to get NSTextFieldCell to wrap AND truncate?

2010-11-01 Thread Ben Lachman
r wrapping? Thanks, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: blach...@mac.com twitter: @benlachman mobile: 740.590.0009 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Drawing over a QTCaptureView

2008-06-04 Thread Ben Lachman
I'm wonder what's the easiest way to draw a simple box over a QTCaptureView. Overriding drawRect doesn't work and putting another view over the QTCV doesn't work. Any Thoughts? Thanks, ->Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Drawing over a QTCaptureView

2008-06-04 Thread Ben Lachman
lease]; return [ciImage autorelease]; } Hope this helps, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: [EMAIL PROTECTED] twitter: @benlachman mobile: 740.590.0009 On Jun 4, 2008, at 8:40 PM, Gordon Apple wrote: And then what can you do with it?

[announce] SousChef 1.0

2008-09-29 Thread Ben Lachman
he details so you can simply cook." I had lots of help from people on this list. Thanks so much! ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: [EMAIL PROTECTED] twitter: @benlachman mobile: 740.590.0009 ___

Re: Custom View drawn twice?

2008-03-05 Thread Ben Lachman
..: within your drawRect: method. In any case it was a nasty hack to get correct looking functionality and I'm actually more interested in figuring out what is causing the double drawing than hack a fix on top of it. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreeso

CoreData fed ImageView blank on first run.

2008-03-05 Thread Ben Lachman
into something like this or have any pointers? Thanks, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin req

Re: NSTextView changes font

2008-03-07 Thread Ben Lachman
I'd use setTypingAttributes: in the text view's delegate whenever needed. In my code at least this often goes along with editing the default paragraph style as well via setDefaultParagraphStyle:. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EM

-[NSMenu popUpContextMenu:withEvent:forView:] crashing in __isSystemFont on 10.5.2

2008-03-07 Thread Ben Lachman
is is happening? Same code works fine on Tiger. Thanks, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin req

Re: -[NSMenu popUpContextMenu:withEvent:forView:] crashing in __isSystemFont on 10.5.2

2008-03-07 Thread Ben Lachman
hange though. Thanks, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 On Mar 7, 2008, at 4:49 PM, Kyle Sluder wrote: On Fri, Mar 7, 2008 at 4:31 PM, Ben Lachman <[EMAIL PROTECTED]> wrote: In my custom view

Textview not resizing in Leopard

2008-03-07 Thread Ben Lachman
thing. TIA, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Con

Re: NSTextView changes font

2008-03-07 Thread Ben Lachman
xt:NO]; [textview setUsesFontPanel:NO]; } In IB I unchecked allow user to change font. HTH, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 On Mar 7, 2008, at 9:31 PM, John Stiles wrote: I tried implementing the delegat

Re: Checking "Continuously Updates Value" in NSTextView binding cases Core Data failure

2008-03-10 Thread Ben Lachman
Is there any reason you can't write a NSString to NSData two-way value transformer? It would probably be more bulletproof than relying on something that doesn't work consistently. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.5

Re: Causing CFLog error messages

2008-03-10 Thread Ben Lachman
herwise Xcode catches it and quits the process (either in the debugger or normally). ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: NSURLDownload and userInfo

2008-03-10 Thread Ben Lachman
"); if( ! isEmpty(matchArray) ) return [matchArray lastObject]; else return nil; } Perhaps not the most efficient, but work for my 10-15 concurrent often changing connections. HTH, ->Ben -- Ben Lachman Acacia Tree Software http://a

Re: NSURLDownload and userInfo

2008-03-10 Thread Ben Lachman
On Mar 10, 2008, at 9:52 PM, Jens Alfke wrote: On 10 Mar '08, at 6:35 PM, Ben Lachman wrote: Alternatively, if you're managing more than two requests at a time you can declare a mutable array of connections and then build a dictionary for each connection that includes any info yo

Re: NSURLDownload and userInfo

2008-03-11 Thread Ben Lachman
g it. Maybe I just don't have this problem too often. I really dislike huge classes and tend to have more issues with ending up with multitude of small close to empty class files than the other way around. I've only been seriously coding this century though, so

NSLayoutManager boundingRectForGlyphRange:actualCharacterRange: inconsistent results?

2008-03-11 Thread Ben Lachman
n gives me rects that don't always account for some newly wrapped lines. Has anyone run into anything like this? Or is there a better way of getting the location of a range of characters than using this method? Thanks, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreeso

NSSpeechSynthesizer/UKSpeechSynthesizer speechSynthesizer:didFinishSpeaking: called immediarely

2008-03-13 Thread Ben Lachman
slide show type animation synced with speaking text and if I can't find out when the speech is done I'm not sure how I'm going to advance the animation at the correct time. Thanks, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.co

Re: NSSpeechSynthesizer/UKSpeechSynthesizer speechSynthesizer:didFinishSpeaking: called immediarely [Solved]

2008-03-13 Thread Ben Lachman
I found the problem. I was having the speech synth speak a tag line before the main string and was getting the didFinishSpeaking: call back when the tag was cut off by the main string starting to be spoken. Thanks for confirming that it was my own fault. :-) ->Ben -- Ben Lachman Aca

Re: File upload with NSURLRequest fails

2008-03-13 Thread Ben Lachman
thFormat:@"[EMAIL PROTECTED] \n", boundary] dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:NO]]; [postRequest setHTTPBody:multipartData]; Hope this helps, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 On Mar 1

Re: Can core data save to a remote file?

2008-03-14 Thread Ben Lachman
re, which isn't persistent as far as CoreData is concerned... and I'm guessing mmalc has some experience with this. ->Ben *excepting ZFS, etc. -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 _

Re: Custom View drawn twice?

2008-03-14 Thread Ben Lachman
eturn; } else { toggle = YES; } ... Thanks to all those who responded to my original post. Hopefully this will help someone else down the road. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 On Mar 5,

Re: Custom View drawn twice?

2008-03-14 Thread Ben Lachman
On Mar 14, 2008, at 8:54 AM, Uli Kusterer wrote: Oh great, so this message *did* get through even though I canceled and it didn't get saved to my outbox... Anyway, of course your "toggle" prevents the endless loop, but it's still an ugly hack. Not to mention a bad way to name such a var

NSButtonCell doesn't visually update during trackMouse:inRect:ofView:untilMouseUp:

2008-03-16 Thread Ben Lachman
r whatever. However if I call performClick: on them the button updates as it should. Is the only solution to this to implement mouse tracking at the view instead of at the cell level? Thanks, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED]

Re: NSButtonCell doesn't visually update during trackMouse:inRect:ofView:untilMouseUp:

2008-03-17 Thread Ben Lachman
de on this topic (rdar:// 5804311). ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 On Mar 17, 2008, at 4:25 PM, Ken Ferry wrote: On Mon, Mar 17, 2008 at 8:49 AM, glenn andreas <[EMAIL PROTECTED]> wrote: On Mar 17, 2008, a

Re: dataCellForTableColumn method

2008-03-19 Thread Ben Lachman
Make sure the field editor isn't getting in the way. The field editors inserts itself into the first responder chain and grabs textual input during editing. <http://developer.apple.com/documentation/Cocoa/Conceptual/ TextEditing/Tasks/FieldEditor.html> HTH, ->Ben -- Ben

NSNoCellMask differences in Leopard vs. Tiger

2008-03-20 Thread Ben Lachman
ange at all during a user's press. Is there a way to get a similar effect on Leopard without using an alternate image (some of my buttons already have alternate images)? Thanks, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [E

How to make whole view be drop target for small subview

2008-03-22 Thread Ben Lachman
t seem to work. Anyone know a good way to do something like this? Thanks, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: How to make whole view be drop target for small subview

2008-03-22 Thread Ben Lachman
Well, to answer my own question... Seemingly you just have to call all the appropriate drag... methods on the image view, performDragOperation won't work on its own. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 On Mar

scrollRangeToVisible from within mouseDown causing crash?

2008-03-30 Thread Ben Lachman
lyphBuffer(): NSZoneMalloc failed!" (EXC_BAD_ACCESS). I had assumed that this was just a memory management bug on my part, but the fact that I can basically turn the crash on or off based on whether I call scrollRangeToVisible has me a bit confused. Anyone know what this could be?

Re: Threads and Core Data, bindings results in view corruption

2008-03-30 Thread Ben Lachman
ct graph that you'll need. In my case that is a couple thousand objects and contributes to the performance hit as well. So, the question still stands, is there a way to use CoreData driven bindings in a multithreaded app with a single managed object context? Anyone? ->Ben --

Re: Threads and Core Data, bindings results in view corruption

2008-03-30 Thread Ben Lachman
s would be welcome, but I think I'm now on the right path. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 On Mar 30, 2008, at 9:50 PM, Ben Trumbull wrote: David, Jeff, Ben There are a few issues here. First, enough pieces

Re: NSNoCellMask differences in Leopard vs. Tiger

2008-03-31 Thread Ben Lachman
;t mention NSPushInCellMask unless you look at the state masks leading me to believe that it wasn't a supported value for setHighlightsBy:. Anyway, hope this helps someone at some point. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 O

Re: Threads and Core Data, bindings results in view corruption

2008-03-31 Thread Ben Lachman
read back to the main thread, it seems like it might introduce some more complexity but might also be worthwhile performance-wise since saving to the SQL store does have a certain amount of latency due to how it hits the disk (particularly on Tiger). Any thoughts on this Ben? ->Ben -- Ben

Re: How to store NSRect as Core Data attribute?

2008-04-02 Thread Ben Lachman
I think the easiest way to encode/decode NSRects for storage is NSStringFromRect() and NSRectFromString(). Then you can just implement a custom accessor for the property that converts in the direction you need. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.

Re: scrollRangeToVisible from within mouseDown causing crash?

2008-04-02 Thread Ben Lachman
long as aString is longer than 20, the returned range will be {20, UINT_MAX-10}... not quite what you'd expect. Anyway, I would have never run up against this if my code wasn't buggy, but I thought it might be helpful to someone down the line. Peace, ->Ben -- Ben Lachma

Bindings on Contextual Menu Items when to unbind:

2008-04-03 Thread Ben Lachman
I have a few contextual menus that have items that are generated dynamically and are bound in code to my model. I'm not sure if/when I should unbind them however. Is there a good place to do this? Do I even need to? Thanks, ->Ben -- Ben Lachman Acacia Tree Softwa

Re: Propagate changes/insertions in main context

2008-04-03 Thread Ben Lachman
There was quite an extensive conversation about this a couple days ago. Try to check the archives before posting... <http://www.cocoabuilder.com/archive/message/cocoa/2008/3/30/202687> and following ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL

Re: Bindings on Contextual Menu Items when to unbind:

2008-04-03 Thread Ben Lachman
timeslice in the UI, doesn't make any sense. Its makes more sense just to set up the initial state of the menu based on the current model properties and go from there. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 On Apr

Re: Custom Buttons - Tutorial/Examples...

2008-04-05 Thread Ben Lachman
though I think looking at setShowsStatesBY: and setHighlightsBy: should suffice to solve your problem. Also make sure you look at all the constants that are valid, not just the ones the developer docs talk about (NSNoCellMask and siblings). ->Ben -- Ben Lachman Acacia T

Re: Scaling a window background image quickly

2008-04-05 Thread Ben Lachman
u are in a live resize. Use -inLiveResize to check in your drawRect: and possibly set the interpolation to low during a resize and high at other times. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009

Re: Highlight color of a NSTableView row

2008-04-09 Thread Ben Lachman
Look at: http://katidev.com/blog/2008/02/22/styling-an-nstableview-dttah/ but make sure you read the comments. John Randolph's comments are worth considering. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 On Apr 10, 200

Re: Tips to deploy applications to multiple Mac OS X versions

2008-04-09 Thread Ben Lachman
On Apr 9, 2008, at 3:27 PM, David Duncan wrote: On Apr 9, 2008, at 7:43 AM, Lorenzo Bevilacqua wrote: I'm trying to build a Cocoa application so that it can run on Mac OS X from version 10.3.9 to 10.5. I have 10.5 installed so the application runs fine on my system and on other Leopard syste

Re: some questions about creating image thumbnails

2008-04-09 Thread Ben Lachman
log/2005/09/jpeg2000-cool-but-slow.html The other nice thing about JPEG2000 is that the file size is a bit smaller than even regular JPEG and the quality is better. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 On Apr 9, 2008,

Re: Can I record video in iPhone?

2008-04-10 Thread Ben Lachman
As always: a) the iPhone SDK is under a NDA, so releasing sample code, and/or talking about any APIs is not allowed. b) the iPhone doesn't natively support video in any of its released features/application so I'd guess this might not be the easiest thing to do. ->Ben -

Re: Tips to deploy applications to multiple Mac OS X versions

2008-04-10 Thread Ben Lachman
would probably be easiest, either checking against NSAppKitVersionNumber or calling Gestalt() to get the OS version. There's something you can put in the Info.plist that does this for free. I forget exactly what it is but I'm sure it's easily found. LSMinimumSystemVersion

Re: Highlight color of a NSTableView row

2008-04-10 Thread Ben Lachman
inView:(NSView *)controlView { return nil; } @end HTH, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 On Apr 10, 2008, at 8:47 PM, Eric Gorr wrote: On Apr 10, 2008, at 8:30 PM, Corbin Dunn wrote: Playing with this a bit m

Re: struct problem

2008-04-12 Thread Ben Lachman
naming conventions anyway since if you ever have to share your code or go just back and read it in a year you'll have less work understanding it. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 _

Re: Highlight color of a NSTableView row

2008-04-12 Thread Ben Lachman
TH, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 On Apr 12, 2008, at 1:23 PM, Eric Gorr wrote: On Apr 11, 2008, at 12:21 AM, Ben Lachman wrote: I do something like this: @implementation HilightingTextFieldCell - (void)drawWith

Re: Convert NSArray to NSString

2008-04-12 Thread Ben Lachman
anges returns by selectedRange(s) doesn't contain the NSNotFound marker as well. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 On Apr 12, 2008, at 8:49 PM, Michael Vannorsdel wrote: The textStorage of the NSTextView i

Re: Get "end-editing" notice from simple NSTextField?

2008-04-13 Thread Ben Lachman
ll receive controlTextDidEndEditing: if you've implemented it. This goes for all controls actually (not all controls actually produce these messages of course). ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009

Image view binding doesn't update on nil values

2008-04-15 Thread Ben Lachman
n automatically? Thanks, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: setTextContainerInset with different values for left and right

2008-04-18 Thread Ben Lachman
You can subclass the text view and returned an origin point from - (NSPoint)textContainerOrigin. This will give you origin.x +inset.width on the left and just inset.width on the right when used in conjunction with setTextContainerInset. ->Ben -- Ben Lachman Acacia Tree Software h

Re: NSTableView -editColumn:row:withEvent:select: question

2008-04-18 Thread Ben Lachman
that lets you select the full row/column by clicking on the header. But this should get you started, hopefully. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com [EMAIL PROTECTED] 740.590.0009 On Apr 18, 2008, at 1:55 PM, John Stiles wrote:

Re: Hand style movement inside a NSScrollView

2008-04-18 Thread Ben Lachman
ave your view's mouseDragged: handler method call -scrollPoint: on self. The only tricky bit is figuring out what point (in your view's coords) should become the origin of its visible bounds. I tend to like scrollRect:by: for this sort of thing since it takes a offset to a rec

Re: Hand style movement inside a NSScrollView

2008-04-18 Thread Ben Lachman
On Apr 19, 2008, at 12:41 AM, Jens Alfke wrote: On 18 Apr '08, at 8:59 PM, Ben Lachman wrote: I tend to like scrollRect:by: for this sort of thing since it takes a offset to a rect. But that method just blits pixels around on the screen; it doesn't actually change the coordin

Re: Observer CoreData Objects changes

2008-04-26 Thread Ben Lachman
o bind to stuff through a pre-built controller that is in entity mode than observe all the objects yourself. KVO is definitely the way to go though since it gives you change info. HTH, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: [EMAIL PROTECTED]

NSScrollView/NSScroller drawing glitch on leopard

2008-04-27 Thread Ben Lachman
Hi all. Recently I noticed that one of the scrollers in my app was drawing a bit oddly on launch. What happens is that the vertical scroller draws as if both the horizontal and vertical scrollers were visible (e.g. a little empty white box below the down button). However, only the vertic

CGevent and cocoa compatibility

2008-05-01 Thread Ben Lachman
the events. Thanks, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: [EMAIL PROTECTED] twitter: @benlachman mobile: 740.590.0009 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admi

Re: CGevent and cocoa compatibility

2008-05-02 Thread Ben Lachman
Yup, this is true as far as I can tell. I've got the event tap installed, the issue is that I'm not able to pull any useful data out of NX_SYSDEFINED typed events. Any thoughts on that? ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: [EM

iChat theater

2008-05-10 Thread Ben Lachman
r" or whatever from iChat. Apple script doesn't seem to have access to the iChat theater option either. Calling -start on the manager doesn't do anything is a session hasn't been requested (as documented). Thoughts? Thanks, ->Ben -- Ben Lachma

Moving oneself to /Applications (or ~/Applications)

2009-02-17 Thread Ben Lachman
ing about to do something like this. Would anyone mind sharing ideas/code on how to do this? Thanks, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: blach...@mac.com twitter: @benlachman mobile: 740.590.0009 ___ Coco

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-20 Thread Ben Lachman
elaunch the new binary 5) quit the original Sparkle does something like this for updates and Delicious Library 2 does pretty much exactly what I just described as far as I can tell. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: blach...@mac.com

Printing a list of items

2009-02-20 Thread Ben Lachman
tter way? Thanks, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: blach...@mac.com twitter: @benlachman mobile: 740.590.0009 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-22 Thread Ben Lachman
ing quite off topic, and I'd prefer to stay on topic. The original question stands, does anyone have code that would be helpful in implementing such a feature? If you'd like to continue discussing the validity of such a feature you are more than welcome to contact me off lis

Re: MacOS X 10.4 and 10.5

2009-03-01 Thread Ben Lachman
ar in my opinion. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: blach...@mac.com twitter: @benlachman mobile: 740.590.0009 On Mar 1, 2009, at 11:25 PM, Vijay Kanse wrote: I am also confused with that. Using project settings that above mentioned can we use MAC

Re: float from NSData

2009-03-02 Thread Ben Lachman
f creating a float out of the raw data than first shoving it into a data then some other object and then finally outputting it as a 32-bit float. -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: blach...@mac.com twitter: @benlachman mobile: 740.590.0009 On Mar 2,

NSTextView/NSAttributedString supported file types

2008-10-08 Thread Ben Lachman
of getting a list of file types that are supported at run time instead of me hardcoding it. Any Ideas? Thanks, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: [EMAIL PROTECTED] twitter: @benlachman mobile:

Re: NSTextView/NSAttributedString supported file types

2008-10-08 Thread Ben Lachman
Thanks Jim. Not sure how I missed that, its exactly what I was looking for. Unfortunately it's deprecated in 10.5. Know what the advised API to transition to is? ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: [EMAIL PROTECTED] twitter: @benlachma

Re: Play/Pause, rew/ff keys ...

2008-11-11 Thread Ben Lachman
rson using SousChef hits ffwd and SousChef would advance to the next step, however iTunes would also advance to the next song. Has anyone had any luck eating these events as they come in? ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: [EMAIL PROTE

CoreData -- addPersistentStoreWithType crashing

2008-12-10 Thread Ben Lachman
it's still crashing. I figure it must have to do with the change in the model, but I can't see why that would make it crash and not report an error or trow an exception, particularly if the URL points to a nonexistent file )e.g. it will create a new store file). Any thoughts? Thanks,

Re: CoreData -- addPersistentStoreWithType crashing [solved]

2008-12-10 Thread Ben Lachman
ing a syntax error. Thanks a bunch! -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: [EMAIL PROTECTED] twitter: @benlachman mobile: 740.590.0009 On Dec 10, 2008, at 8:08 AM, John Pannell wrote: Hi Ben- If you are using a custom class to represent an entity in your model

MacRoman -> UTF8

2009-03-21 Thread Ben Lachman
d be a way to make the arguments passed in UTF8 since they are when they're handled by the script anyway--they must be getting changed somewhere in the bowels of the exec/system commands. Thanks, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: bla

Re: MacRoman -> UTF8

2009-03-21 Thread Ben Lachman
On Mar 21, 2009, at 5:38 PM, Clark Cox wrote: On Sat, Mar 21, 2009 at 2:31 PM, Ben Lachman wrote: My software uses UTF8 almost exclusively. However, for some odd reason, arguments passed from a perl cgi script to one of my command line helper apps are encoded as MacRoman. Where is the

Re: MacRoman -> UTF8 [solved]

2009-03-22 Thread Ben Lachman
Just for the record, this was an issue with my HTTP content type settings and the charset that the input was encoded in, not any issue with NSString. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: blach...@mac.com twitter: @benlachman mobile: 740.590.0

Stop NSScrollView from catching scroll events.

2009-03-23 Thread Ben Lachman
he tableview it still eats scroll events when the mouse is over it. I tried ripping the tableview out of the scroll view programatically, but that didn't yield useable results. Is there a straight forward way to have a scroll view pass scroll events on up the responder chain? Thanks,

Re: Stop NSScrollView from catching scroll events.

2009-03-23 Thread Ben Lachman
On Mar 23, 2009, at 10:54 AM, Michael Ash wrote: On Mon, Mar 23, 2009 at 3:46 AM, Ben Lachman wrote: I have a tableview that's neatly wrapped in a scroll view by IB. I manually resize the scrollview whenever a row is added to the tableview so that all the row are always visible. T

Re: Stop NSScrollView from catching scroll events.

2009-03-23 Thread Ben Lachman
On Mar 23, 2009, at 5:47 PM, Corbin Dunn wrote: On Mar 23, 2009, at 2:35 PM, Ben Lachman wrote: On Mar 23, 2009, at 10:54 AM, Michael Ash wrote: On Mon, Mar 23, 2009 at 3:46 AM, Ben Lachman wrote: I have a tableview that's neatly wrapped in a scroll view by IB. I manually resiz

Bindings and MenuItems

2009-04-01 Thread Ben Lachman
get to one of the objects manually in IB the validation method is called as expected. Has anyone else run into this and if so, is there a work around? Thanks, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: blach...@mac.com twitter: @benlachman mobile:

Re: Bindings and MenuItems

2009-04-01 Thread Ben Lachman
rough the basic control drag from source to target and select the action method and I'm not talking about setting it in code. I know how to do both of those and they work, what I'm going for is a dynamic target. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.c

Re: Bindings and MenuItems

2009-04-01 Thread Ben Lachman
On Apr 1, 2009, at 5:01 PM, Keary Suska wrote: On Apr 1, 2009, at 12:31 PM, Ben Lachman wrote: I mean a "Cocoa bindings" kind of binding. e.g. the "target" binding of the menu item is bound in IB. The action field of the binding is set to "print:". I'

Re: Bindings and MenuItems

2009-04-02 Thread Ben Lachman
that actually shows the currently data of the selected object(s). So no that's not really what the first responder is for. ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: blach...@mac.com twitter: @benlachman mobile: 740.590.0009 On Apr 2, 2009, at

Re: Bindings and MenuItems

2009-04-03 Thread Ben Lachman
On Apr 3, 2009, at 6:14 AM, Alexander Spohr wrote: Am 03.04.2009 um 06:49 schrieb Ben Lachman: No. That was what my original message outlined. Say you have a table view selected and hit cmd-p. NSView has a default implementation of print: so it will print the table view. In my case

mouseDragged: with NSTableView

2009-04-17 Thread Ben Lachman
ass that from what I can tell. Anyone have any thoughts? Thanks, ->Ben -- Ben Lachman Acacia Tree Software http://acaciatreesoftware.com email: blach...@mac.com twitter: @benlachman mobile: 740.590.0009 ___ Cocoa-dev mailing list (Cocoa-dev@list

  1   2   >