Re: Is it possible to define class from interface builder?

2013-08-15 Thread Chris Hanson
On Aug 13, 2013, at 11:34 AM, Izak van Langevelde eezac...@xs4all.nl wrote: A user interface contains several instances of a specific form, which is easily created in Interface Builder. Is there any way to derive a subclass of NSView from this form, so that it can be reused? A good way to

Re: Is it possible to define class from interface builder?

2013-08-15 Thread dangerwillrobinsondanger
On 2013/08/15, at 15:08, Chris Hanson c...@me.com wrote: On Aug 13, 2013, at 11:34 AM, Izak van Langevelde eezac...@xs4all.nl wrote: A user interface contains several instances of a specific form, which is easily created in Interface Builder. Is there any way to derive a subclass of

NSToolbar's setShowsBaselineSeparator

2013-08-15 Thread Martin Hewitson
Dear list, I've been using NSToolbar's -setShowsBaselineSeparator: to remove the dark gray line below the toolbar (because I have Safari-like tabs below the toolbar). This is working nicely on 10.8, but on 10.6.8, there is a white line left in place of the dark gray base line. It's almost as

Re: Block gets NULL-ified when animation completes

2013-08-15 Thread Andreas Grosam
The collection view will very likely have corresponding ivars for the animation block and its completion handler. If that's the case, it should (shall) create a copy of the anonymous animation (updates) and completion block when receiving them in `performBatchUpdate:completion:`. Now,

Re: Dismissing Open dlog before doc actually opens

2013-08-15 Thread Uli Kusterer
On Aug 14, 2013, at 7:51, Graham Cox graham@bigpond.com wrote: On 14/08/2013, at 1:38 AM, Steve Mills smi...@makemusic.com wrote: unning an open panel modally is a user-hostile experience that prevents the user from interacting with other documents. OS X applications should not behave this

Re: Dismissing Open dlog before doc actually opens

2013-08-15 Thread Kyle Sluder
On Aug 14, 2013, at 2:14 AM, Uli Kusterer witness.of.teacht...@gmx.net wrote: Also keep in mind that in current MacOS X releases, open and save panels are out-of-process windows managed by PowerBox (think sandbox), and NSOpenPanel and NSSavePanel are only proxy objects in your process.

Find bar in a text view

2013-08-15 Thread Shane Stanley
I have text views in a split view, and I use find bars with them. I'd like to implement incremental searching. When I turn it on in IB it works, except that if I collapse a subview showing the grey overlay, the overlay remains on screen. As a workaround, the documentation says I can turn the

Re: Block gets NULL-ified when animation completes

2013-08-15 Thread Vlad Alekseev
Turns out, this is a bug in UICollectionView or even ARC. And it is easily reproducible. You can download Apple's sample code: http://developer.apple.com/library/ios/samplecode/CollectionView-Simple/Introduction/Intro.html and modify it to return 0 items to the collection view. Then try to

Re: Dismissing Open dlog before doc actually opens

2013-08-15 Thread Steve Mills
On Aug 14, 2013, at 04:14:58, Uli Kusterer witness.of.teacht...@gmx.net wrote: I vaguely remember having the same issue where an open panel stayed open too long. I think it might be related to autorelease pools holding on to the actual window-owning object (some private thing, I think). You

Re: Dismissing Open dlog before doc actually opens

2013-08-15 Thread Steve Mills
On Aug 15, 2013, at 06:41:49, Kyle Sluder k...@ksluder.com wrote: This is only true for sandboxed apps, but it is a very good point. If Steve's app is sandboxed, it needs to forward the- orderOut: message to Powerbox over XPC. That would require running the runloop. It is not sandboxed. --

Re: Block gets NULL-ified when animation completes

2013-08-15 Thread Jens Alfke
On Aug 15, 2013, at 5:41 AM, Vlad Alekseev ippo...@me.com wrote: dispatch_block_t block = ^{ printf(finished); }; UICollectionViewFlowLayout *layout = (UICollectionViewFlowLayout *)self.collectionView.collectionViewLayout; [self.collectionView performBatchUpdates:^{

Re: Block gets NULL-ified when animation completes

2013-08-15 Thread Vlad Alekseev
As I said before, this is a bug in your code. ‘block’ needs to be copied since it is going to be called after the calling function returns. I work under ARC. It goes to heap automatically. Also, there are some circumstances that proves your wrong guess: 1. If I copy it manually, it still

Re: Block gets NULL-ified when animation completes

2013-08-15 Thread Ken Thomases
On Aug 15, 2013, at 9:49 AM, Jens Alfke wrote: On Aug 15, 2013, at 5:41 AM, Vlad Alekseev ippo...@me.com wrote: dispatch_block_t block = ^{ printf(finished); }; UICollectionViewFlowLayout *layout = (UICollectionViewFlowLayout *)self.collectionView.collectionViewLayout;

Re: Find bar in a text view

2013-08-15 Thread Kevin Perry
Sounds like a bug that you should report via Bug Reporter. But as a workaround, you should be able to call -[NSTextView setIncrementalSearchingEnabled:NO] when the subview gets collapsed (then obviously set it back to YES when the text view is uncollapsed, though you will lose search results

Auto layout semantics?

2013-08-15 Thread Izak van Langevelde
I wasted some time trying to use auto layout to maintain the layout of a form, to make sure that fields are horizontally resized with the form, while labels maintain their size. However, when two fields are sitting next to each other, having the same priority, only one of them resizes with the

Re: Auto layout semantics?

2013-08-15 Thread Kyle Sluder
On Thu, Aug 15, 2013, at 09:33 AM, Izak van Langevelde wrote: I wasted some time trying to use auto layout to maintain the layout of a form, to make sure that fields are horizontally resized with the form, while labels maintain their size. However, when two fields are sitting next to each

Re: Auto layout semantics?

2013-08-15 Thread Fritz Anderson
On 15 Aug 2013, at 11:33 AM, Izak van Langevelde eezac...@xs4all.nl wrote: I wasted some time trying to use auto layout to maintain the layout of a form, to make sure that fields are horizontally resized with the form, while labels maintain their size. However, when two fields are sitting

iOS UITableViewCell imageView

2013-08-15 Thread Alex Zavatone
Anyone know how to properly set the borderWidth on a UITableViewCell's image.imageView layer? Setting the layer's borderWidth and borderColor work just fine on a UITableViewCell's layer, when setting them in tableView:cellForRowAtIndexPath, but the same code on the cell.imageView.layer has no

Menu item key equiv mods not correct

2013-08-15 Thread Steve Mills
When adding some certain-mode-only menus, we scan the existing menus to temporarily remove key equivs that are also in the new menu. They're put back later. However, something isn't right when I ask for each menu item's modifiers. Our Edit menu has Select All, which is command-a. Another menu

Re: Menu item key equiv mods not correct

2013-08-15 Thread Ken Thomases
On Aug 15, 2013, at 2:31 PM, Steve Mills wrote: When adding some certain-mode-only menus, we scan the existing menus to temporarily remove key equivs that are also in the new menu. They're put back later. However, something isn't right when I ask for each menu item's modifiers. Our Edit

Fwd: GNUstep Kickstarter Project

2013-08-15 Thread Lars Sonchocky-Helldorf
Hi list, I've got this from the lead developer of GNUstep, maybe some of you are interested in this. cheers, Lars Anfang der weitergeleiteten E-Mail: Von: Gregory Casamento greg.casame...@gmail.com Datum: 12. August 2013 22:13:54 MESZ An: Discuss-gnustep Discuss

Re: Menu item key equiv mods not correct

2013-08-15 Thread Steve Mills
On Aug 15, 2013, at 14:39:56, Ken Thomases k...@codeweavers.com wrote: Shifted key equivalents which use letter keys are usually represented with capital letters, not NSShiftKeyMask. You're using a case-insensitive match, so you're catching those. Use a case-sensitive match and you should

Re: Find bar in a text view

2013-08-15 Thread Shane Stanley
On 16/08/2013, at 2:27 AM, Kevin Perry kpe...@apple.com wrote: Sounds like a bug that you should report via Bug Reporter. Thanks, I'd done that (#14745599). It also happens if a text view is on a tab view and you change tabs, except it then also moves rather dramatically (in my case partly

Re: Uniquing data in Core Data

2013-08-15 Thread Sandor Szatmari
Can you make it a derived property? If each Managed object has a reference to the AppDelegate they can just return the comparison of their NSManagedObjectID to the one stored as the user default. Sandor Szatmari On Aug 15, 2013, at 1:07, Rick Mann rm...@latencyzero.com wrote: On Aug 14,

Re: Uniquing data in Core Data

2013-08-15 Thread Rick Mann
Doesn't work for sorting in NSFetchedresultsController On Aug 15, 2013, at 16:34 , Sandor Szatmari admin.szatmari@gmail.com wrote: Can you make it a derived property? If each Managed object has a reference to the AppDelegate they can just return the comparison of their

Re: GNUstep Kickstarter Project

2013-08-15 Thread Reaves, Timothy
No, not really. On Thu, Aug 15, 2013 at 5:02 PM, Lars Sonchocky-Helldorf lars.sonchocky-helld...@hamburg.de wrote: Hi list, I've got this from the lead developer of GNUstep, maybe some of you are interested in this. cheers, Lars Anfang der weitergeleiteten E-Mail: Von:

Prioritizing UIScrollView gestures over buttons

2013-08-15 Thread Rick Mann
I have a set of buttons that live above (not subviews of) a UIScrollView. I update their position based on feedback from the UIScrollView during pan and zoom. The problem is, the buttons are easy to tap accidentally when you're trying to pan or zoom. Is there a magic setting to let taps in the