Re: Question about hebrew in textfields and textviews

2012-04-15 Thread Jeffrey Oleander
> Kyle Sluder 2012-04-11 12:26 wrote: >> On 2012 Apr 11, at 10:17, Matthew >> Weinstein wrote: >> Thanks for all the replies. Unfortunately >> NSNaturalTextAlignment doesn't seem to affect >> the justification of the textfields. Try creating >> a simple project and simply put a textfield and >> t

Re: Responder chain inclarity

2012-04-15 Thread Seth Willits
On Apr 15, 2012, at 1:03 PM, Erik Stainsby wrote: > My issue is with wiring up the menu to the NSResponder chain. When I connect > the Delete menu item to the FirstReponder action in IB the event never fires. NSViewControllers are not part of the responder chain by default. You need to manually

Re: Dictionary not returning objects

2012-04-15 Thread Dave Zarzycki
On Apr 15, 2012, at 3:46 PM, Markus Spoettl wrote: > On 4/15/12 8:06 PM, Scott Ribe wrote: >> On Apr 15, 2012, at 12:01 PM, Markus Spoettl wrote: >> >>> I have an NSDictionary that contains, well, objects. When I call >>> -objectForKey: I get nil for keys that are definitely in there. >>> >>>

Re: Webview cache location

2012-04-15 Thread Mike Abdullah
WebKit uses multiple layers of caching. Not all of it on disk. A combination of clearing out the shared NSURLCache and relaunching your app should clear them all. On 13 Apr 2012, at 15:49, Koen van der Drift wrote: > Unfortunately that link doesn't seem applicable to my situation. I'm > just t

Re: Observing frame change of a subview

2012-04-15 Thread Kyle Sluder
On Apr 15, 2012, at 12:42 PM, Luc Van Bogaert wrote: > Hi, > > I have this custom view, that can have any number of subviews. The custom > view should redraw itself whenever any of the subviews frame changes. I'm > trying to find a way to do this. > > I'm thinking of adding the custom view to

Responder chain inclarity

2012-04-15 Thread Erik Stainsby
I'm having responder chain headaches. Here's my stack of objects: RSWindow with custom - sendEvent: to capture and handle with trackingRect for webView mouse activity. When the user clicks I create a viewController and add the view as a subview to the RSWindow. The viewController provides - de

Re: Dictionary not returning objects

2012-04-15 Thread Markus Spoettl
On 4/15/12 8:06 PM, Scott Ribe wrote: On Apr 15, 2012, at 12:01 PM, Markus Spoettl wrote: I have an NSDictionary that contains, well, objects. When I call -objectForKey: I get nil for keys that are definitely in there. The dictionary gets constructed like this: [NSDictionary dictionaryWith

Observing frame change of a subview

2012-04-15 Thread Luc Van Bogaert
Hi, I have this custom view, that can have any number of subviews. The custom view should redraw itself whenever any of the subviews frame changes. I'm trying to find a way to do this. I'm thinking of adding the custom view to the default notification center as observer for any frame change no

Re: activating Delete menu item through binding

2012-04-15 Thread Quincey Morris
On Apr 15, 2012, at 11:53 , Koen van der Drift wrote: > Interestingly, the 'Select All' menu item that sits just under the Delete > item (and both of them were already present when I started my project) works > 'out of the box' for my NSTableView, I did not set any responders or do any > valid

Re: activating Delete menu item through binding

2012-04-15 Thread Koen van der Drift
Excellent explanation, thanks Quincey. Interestingly, the 'Select All' menu item that sits just under the Delete item (and both of them were already present when I started my project) works 'out of the box' for my NSTableView, I did not set any responders or do any validation, etc. - Koen.

Re: activating Delete menu item through binding

2012-04-15 Thread Quincey Morris
On Apr 15, 2012, at 11:13 , Koen van der Drift wrote: > My MainMenu.nib has a 'Delete' menu item that is mapped to the Delete key. > I'd like to use that to remove items from my NSTableView that is connected to > an NSArrayController. So in the bindings for the Delete menu item, I set > it's

activating Delete menu item through binding

2012-04-15 Thread Koen van der Drift
My MainMenu.nib has a 'Delete' menu item that is mapped to the Delete key. I'd like to use that to remove items from my NSTableView that is connected to an NSArrayController. So in the bindings for the Delete menu item, I set it's availability to myArrayController.canRemove. However, the Dele

Re: Dictionary not returning objects

2012-04-15 Thread Seth Willits
On Apr 15, 2012, at 11:01 AM, Markus Spoettl wrote: > [NSDictionary dictionaryWithObjectsAndKeys: > kUnitsKey, [NSNumber numberWithDouble:units], > kValueKey, [NSNumber numberWithDouble:value], > kIsMetricKey, [NSNumber numberWithBool:isMetric], > nil]; You have key and obje

Re: Dictionary not returning objects

2012-04-15 Thread Scott Ribe
On Apr 15, 2012, at 12:01 PM, Markus Spoettl wrote: > I have an NSDictionary that contains, well, objects. When I call > -objectForKey: I get nil for keys that are definitely in there. > > The dictionary gets constructed like this: > > [NSDictionary dictionaryWithObjectsAndKeys: > kUnitsK

Re: Bookmark alias files v. Finder alias files

2012-04-15 Thread Scott Ribe
Or, at least, the preview should not take more space than the image file ;-) On Apr 15, 2012, at 11:51 AM, Alex Zavatone wrote: > The PNG file does not contain a load of data for its icon and the like, so it > seems terrible that the alias must. It would seem that the alias should be > able to

Dictionary not returning objects

2012-04-15 Thread Markus Spoettl
Hello, I seem to be having an acute case of brain blockage, I can't figure out what I'm doing wrong with a simple thing I've done a thousand times. I have an NSDictionary that contains, well, objects. When I call -objectForKey: I get nil for keys that are definitely in there. The dictiona

Re: Bookmark alias files v. Finder alias files

2012-04-15 Thread Alex Zavatone
Sorry if I overlooked that. In and out of Xcode right now. Yeah, I always remembered them as pointers to files. It seems like terrible overkill to embed the fat data in the aliases. The point that I was trying to make which obviously was not obvious is that if a screenshot saved out of the

Re: Bookmark alias files v. Finder alias files

2012-04-15 Thread Charles Srstka
On Apr 15, 2012, at 12:36 PM, Alex Zavatone wrote: > Well, thinking back to 1995, it appeared that they were exactly that. > > What Is the payload full of now, icons and previews or what? > > Sent from my iPod Um, yes, as has already been mentioned, aliases store the icons of their target fil

Re: Bookmark alias files v. Finder alias files

2012-04-15 Thread Alex Zavatone
Well, thinking back to 1995, it appeared that they were exactly that. What Is the payload full of now, icons and previews or what? Sent from my iPod On Apr 15, 2012, at 1:10 PM, Scott Ribe wrote: > On Apr 15, 2012, at 11:05 AM, Alex Zavatone wrote: > >> Nope. I'm thinking back to 1995 when

Re: Bookmark alias files v. Finder alias files

2012-04-15 Thread Scott Ribe
On Apr 15, 2012, at 11:05 AM, Alex Zavatone wrote: > Nope. I'm thinking back to 1995 when an alias was about 2K. > > But I don't want to clog the list up with this. It just seems strange that > an alias now has to be so large a set of data structures. > > 668KB? Even if we are in the days

Re: Bookmark alias files v. Finder alias files

2012-04-15 Thread Alex Zavatone
On Apr 15, 2012, at 12:57 PM, Marco S Hyman wrote: > On Apr 15, 2012, at 7:51 AM, Alex Zavatone wrote: > >> Space savings definitely used to be one of the benefits. > > Perhaps you are confusing alias with symbolic link? They are > not the same thing even though the finder displays them using

Re: Bookmark alias files v. Finder alias files

2012-04-15 Thread Marco S Hyman
On Apr 15, 2012, at 7:51 AM, Alex Zavatone wrote: > Space savings definitely used to be one of the benefits. Perhaps you are confusing alias with symbolic link? They are not the same thing even though the finder displays them using the same icon. Marc ___

Re: Bookmark alias files v. Finder alias files

2012-04-15 Thread Scott Ribe
On Apr 15, 2012, at 8:51 AM, Alex Zavatone wrote: > Space savings definitely used to be one of the benefits. Space savings was *never* a reason to use a alias. In what reasonable scenario would you use aliases to save space??? > I wonder when that changed and why. Previews maybe? I don't kn

Re: Bookmark alias files v. Finder alias files

2012-04-15 Thread Alex Zavatone
Space savings definitely used to be one of the benefits. I wonder when that changed and why. On Apr 15, 2012, at 10:35 AM, Scott Ribe wrote: > Allowing the user to move the original without disrupting references to it is > the point, not space savings. > > > On Apr 15, 2012, at 8:13 AM, Ale

Re: Bookmark alias files v. Finder alias files

2012-04-15 Thread Scott Ribe
Allowing the user to move the original without disrupting references to it is the point, not space savings. On Apr 15, 2012, at 8:13 AM, Alex Zavatone wrote: > What's the point of aliases if they are this fat? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0

Re: Bookmark alias files v. Finder alias files

2012-04-15 Thread Alex Zavatone
Along these lines, I made an alias to one of my project files that was 48K. The alias is 668 K. W T F? What's the point of aliases if they are this fat? On Apr 15, 2012, at 8:57 AM, Michael Hall wrote: > > On Apr 15, 2012, at 7:36 AM, Shane Stanley wrote: > >> On 15/04/2012, at 9:23 PM, Mich

Re: Bookmark alias files v. Finder alias files

2012-04-15 Thread Michael Hall
On Apr 15, 2012, at 7:36 AM, Shane Stanley wrote: > On 15/04/2012, at 9:23 PM, Michael Hall wrote: > >> If your criteria is best variety of icons, then current could be argued >> buggy since it only has one icon resource to the Finder's two. > > But the Finder really only has one, twice. > t

Re: Bookmark alias files v. Finder alias files

2012-04-15 Thread Shane Stanley
On 15/04/2012, at 9:23 PM, Michael Hall wrote: > If your criteria is best variety of icons, then current could be argued buggy > since it only has one icon resource to the Finder's two. But the Finder really only has one, twice. -- Shane Stanley 'AppleScriptObjC Explored' _

Re: Bookmark alias files v. Finder alias files

2012-04-15 Thread Michael Hall
On Apr 14, 2012, at 4:39 PM, Shane Stanley wrote: > Thanks, Charles. I guess that makes it arguably a Finder bug. Nicely done, what was actually used on the resource forks out of curiosity? Really, on the arguably a bug? I suppose if your sole criteria is minimal size. Or maybe the criteria is