Bunch of CoreData based NSDocument questions.

2015-11-22 Thread Motti Shneor
nt architecture - I believe there must be a point to introduce my document-closing logic. But where? There's more, but I'll wait for some answers first... Motti Shneor. -- ceterum censeo microsoftiem delendam esse --- ___ Cocoa-dev mai

Re: Cocoa-dev Digest, Vol 12, Issue 601

2015-11-22 Thread Motti Shneor
> though the file clearly doesn’t exist? > > —Jens > Hi Jens. Is your application by any chance "SandBoxed" ? or is it syncing to iCloud? if so - have also a look into the ~/Library/Containers/my-bundle-id/ It took me some time to get used to find all my app's stuff ther

Re: Bunch of CoreData based NSDocument questions.

2015-11-22 Thread Motti Shneor
On 22 בנוב 2015, at 23:23, Quincey Morris wrote: > On Nov 22, 2015, at 11:44 , Motti Shneor wrote: >> >> 1. My app supports autosave in-place. This means each "save" practically >> recreates the whole document as temporary file, then replaces the document >

Re: Bunch of CoreData based NSDocument questions.

2015-11-23 Thread Motti Shneor
> On Nov 23, 2015, at 09:23, Quincey Morris > wrote: > > On Nov 22, 2015, at 22:41 , Motti Shneor <mailto:su...@bezeqint.net>> wrote: > >> I wish I knew enough to write my own MyPersistentDocument > > The problem is that the way NSDocuments are used is se

Re: Bunch of CoreData based NSDocument questions.

2015-11-23 Thread Motti Shneor
> On Nov 24, 2015, at 00:14, Quincey Morris > wrote: > > On Nov 23, 2015, at 12:50 , Motti Shneor <mailto:su...@bezeqint.net>> wrote: >> >> Any references to that old discussion? I’d like to read it. However, I think >> there should be a reasonable way

Re: Bunch of CoreData based NSDocument questions.

2015-11-26 Thread Motti Shneor
t subclass)? > > - (void)close > { > >// we're about to close this document but we have to do some housekeeping >[self cleanup]; >[super close]; > > } > >> On 23-Nov-2015, at 07:41, Motti Shneor wrote: >> >> Problem is - the applic

Why doesn't SMJobBless sample work?

2016-01-11 Thread Motti Shneor
. Now — any heads-up or hint will be greatly appreciated. Motti Shneor. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lis

Re: Why doesn't SMJobBless sample work?

2016-01-11 Thread Motti Shneor
OK. My bad. The Readme had it all, and I missed it. My unconscious Classic-Mac programmer seems to filter out python scripts still… Thanks, it works now. > On 11 בינו׳ 2016, at 10:44, Motti Shneor wrote: > > Hi. Excuse this novice question (I see previous questions relating to >

Can a privileged launchd daemon binary be linked against private framework?

2016-01-12 Thread Motti Shneor
combination of @runpath @loder_path and other link-time magic I could use to achieve that? Motti Shneor. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at

Yet another privileged-helper-tool question: how to launch from a system-preferences panel?

2016-01-13 Thread Motti Shneor
-tool doesn’t trust, and doesn’t trust my helper tool. Now — of course I cannot modify the “System Preferences” application’s info.plist. What then can I do? Idea anyone? Motti Shneor ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Yet another privileged-helper-tool question: how to launch from a system-preferences panel?

2016-01-14 Thread Motti Shneor
the pref pane, it would bless > the tool on your behalf and you would communicate between the privileged app > and the pref pane via the helper app? > > That’s definitely not ideal but it sounds like it could solve your problem? > > Thanks, > Damien > >>

Fwd: Stubborn link error - can't find a framework.

2016-01-25 Thread Motti Shneor
or actually anything will be greatly appreciated. Motti Shneor ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com

CIFilter applied to AVCaptureVideoPreviewLayer causes errors in the log for every frame!

2016-02-01 Thread Motti Shneor
Hi. I’m capturing live video using AVFoundation APIs only for display (Mac). This is a live microscope view of lake water, where scientists identify and measure organisms. No compression and no saving. I need to draw over the captured video some grid lines, polygons and text. For that I create

CIFilter applied to AVCaptureVideoPreviewLayer causes errors in the log for every frame!

2016-02-01 Thread Motti Shneor
Hi. I’m capturing live video using AVFoundation APIs only for display (Mac). This is a live microscope view of lake water, where scientists identify and measure organisms. No compression and no saving. I need to draw over the captured video some grid lines, polygons and text. For that I create

Re: Easier way to make NSView subclasses refresh on a property change?

2016-02-04 Thread Motti Shneor
This technique applies of course to CALayers and other things - it’s just creating the dependency - not dictating the function. Motti Shneor. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comm

CoreImage filters spam the log on El-Capitan?

2016-02-08 Thread Motti Shneor
Hello friends. Please pardon this short reprise, but I really need help - maybe someone can shed some light on my problem. I’m capturing video using AVFoundation APIs for preview only (OS-X app) following an old sample-code from Apple (AVRecorder). My view hierarchy is simple. An NSView (Wants

CoreImage filters spam the log on El-Capitan?

2016-02-08 Thread Motti Shneor
Hello friends. Please pardon this short reprise, but I really need help - maybe someone can shed some light on my problem. I’m capturing video using AVFoundation APIs for preview only (OS-X app) following an old sample-code from Apple (AVRecorder). My view hierarchy is simple. An NSView (Wants

Re: CoreImage filters spam the log on El-Capitan?

2016-02-08 Thread Motti Shneor
, at 2:41 PM, Motti Shneor wrote: >> >> […] I see strange warnings in the console: "Fallingback to pbuffer. FBO >> status is 36054” for every captured video frame (30 a sec…). > >> Can someone tell me what is the source of this error line? what is FBO,

How to bind OS-X UI to display the App Bundle "CFShortVersionString" value?

2016-02-21 Thread Motti Shneor
. I must be missing something very simple and stupid. Hint anyone? Motti Shneor. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admi

Can launchd start a daemon from a code-bundle? Can I bundle my daemon?

2016-03-01 Thread Motti Shneor
, its resources, its user-defaults in the bundle’s domain, and its internal frameworks? Any hint will be greatly appreciated. Thanks. Motti Shneor. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

How to find the file (url) that was double-clicked to open my Cocoa Application?

2016-03-29 Thread Motti Shneor
[20208]: Doc URLs:( ) Obviously “Installer” isn’t Document based… But still, If a package file was double-clicked to launch the Installer App, and it received an “Open File” event, is there a way to get to the file later on, without actually catching this event? I alread

Re: How to find the file (url) that was double-clicked to open my Cocoa Application?

2016-04-04 Thread Motti Shneor
“next” button on the installer previous stages. It works - although very ugly hack. Hope it will help someone out... > On 30 Mar 2016, at 20:11, Jens Alfke wrote: > > >> On Mar 30, 2016, at 1:47 AM, Motti Shneor > <mailto:su...@bezeqint.net>> wrote: >> >>

Can't code-signing validate an App's main executable, without its whole bundle.

2016-04-27 Thread Motti Shneor
default: printf ("Failed with code:%d for %s\n", result, filePath); CFShow(error); CFRelease(error); break; } } Motti Shneor --- Ceterum censeo Microsoftinem delendam esse __

Hello. Is there a way to stop Apple CrashReporter from collecting crashes of my process?

2016-07-11 Thread Motti Shneor
stop CrashReporter from collecting just MY crashes? how? Is there a runtime API (xpc or other) to control CrashReporter behavior? Any filtering mechanism? Any hint will be greatly appreciated. Thanks! Motti Shneor --- But they are useless --- they can only provide answers! (Pablo

Re: Hello. Is there a way to stop Apple CrashReporter from collecting crashes of my process?

2016-07-11 Thread Motti Shneor
Shneor. > On 11 ביולי 2016, at 7:44 אח׳, Alastair Houghton > wrote: > > On 11 Jul 2016, at 15:04, Motti Shneor wrote: >> >> I develop a global daemon, maintained by launchd. Obviously It cannot be >> distributed in the Mac App Store. To collect crash-reports from

How to silently use Proxy authentication credentials from Keychain, like Safari, Mail, etc.

2016-09-05 Thread Motti Shneor
kinds of authentication schemes (kerberos, NTLM, digest etc.), which seems silly on an OS that already knows how to do it? Clearly OS implementation will be superior to mine... Any hint will be greatly appreciated. Thanks! Motti Shneor ___ Cocoa

Re: How to silently use Proxy authentication credentials from Keychain, like Safari, Mail, etc.

2016-09-06 Thread Motti Shneor
tings. Hence - I’m quite sure they are stored system wide. Not so for the credentials... > On 5 Sep 2016, at 22:10, Jens Alfke wrote: > > >> On Sep 5, 2016, at 6:51 AM, Motti Shneor > <mailto:motti.shn...@me.com>> wrote: >> >> 1. Why don’t Safari, Mail,

VoiceOver/Accessibility of transparent UIView, navigating through subviews in VoiceOver

2016-12-14 Thread Motti Shneor
hanks! Motti Shneor ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription:

VoiceOver/Accessibility of transparent UIView

2016-12-14 Thread Motti Shneor
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.co

How to synchronize my MacOS-X application with Core-Data automatic Undo management?

2014-08-24 Thread Motti Shneor
thing independently of other parts of my program. Any hint or sample-code reference, or clarifying note will be greatly appreciated! Motti Shneor. --- But they are useless --- they can only provide answers! (Pablo Picasso 1881-1973 about Computers). ___

Re: How to synchronize my MacOS-X application with Core-Data automatic Undo management?

2014-08-26 Thread Motti Shneor
think is the common case. Apple's documentation doesn't explain how to synchronize different NSUndoManagers, or assumes they are "Nested" in the sense that an Undo action only reaches ONE NSUndoManager. Again --- any thought or hint, or reference to as code sam

How to Validate CoreData attribute value for uniqueness

2014-08-30 Thread Motti Shneor
ndency upon previous entities like serial IDs or any cross-entity validation. Can anyone shed light on the subject? At my current situation, I would gladly settle on a UI-only validation (meaning, something that would validate a text field upon end-edit-session, but I don't k

Re: How to Validate CoreData attribute value for uniqueness

2014-09-02 Thread Motti Shneor
SLocalizedString(@"The ID %@ is already used for another species. Choose a unique ID.", NULL), *ioValue] }; *outError = [[NSError alloc] initWithDomain:@"PMX Validation" code:ePMXexistingCatalogID userInfo:userInfoDict]; } return NO; } return YES

Can a 32bit only MacOS Application use 64bit-only Frameworks?

2014-09-30 Thread Motti Shneor
r as I know the ObjC-runtime is compiled into the binary, and so it CAN theoretically be different for the framework and the application. But this is just a guess. Any hint will be greatly appreciated. Motti Shneor e-mail: motti.shn...@gmail.com

Re: Can a 32bit only MacOS Application use 64bit-only Frameworks?

2014-10-01 Thread Motti Shneor
; On Sep 30, 2014, at 12:49, Motti Shneor wrote: >> >> Hello everyone. This seems to be an upside-down question, but bare with me... >> >> Our Mac Client-side application can (sadly) only be built and run in >> 32bit-only. Reason is: bit parts of it are legacy 32b

Re: Cocoa-dev Digest, Vol 12, Issue 137

2015-03-09 Thread Motti Shneor
ply by setting a breakpoint in your “drawFocusRing” method, and see if one of your buttons actually executes this method instead of the original. It is not recommended to mess with the NSView or NSWindow behavior, because we don’t know what Apple is doing in their implementation. Motti Shneor.

Opening a NSSavePanel as a Sheet, and blocking like in [panel runModal]

2009-10-14 Thread Motti Shneor
result. return; } Thanks a lot! Motti Shneor -- Senior Software Engineer Waves Audio ltd. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Opening a NSSavePanel as a Sheet, and blocking like in [panel runModal]

2009-10-21 Thread Motti Shneor
something I forgot to do? What in general is the state of opening cocoa-sheets over Carbon-windows? When do I need to release this NSWindow? I don't wish to close the Carbon window, as it is coming from my host application! Thanks a lot again! Motti Shneor ---

Re: Opening a NSSavePanel as a Sheet, and blocking like in [panel runModal]

2009-10-22 Thread Motti Shneor
ost document window, respectively, skipping over other types of windows that may be in front of the active document, such as the menubar window, floating windows, help tags and toolbars." Motti Shneor Software Engineer Waves Audio Ltd Tel: +972 3 608 4155 www.waves.com _

Re: Opening a NSSavePanel as a Sheet, and blocking like in [panel runModal]

2009-10-22 Thread Motti Shneor
nts, etc. Any hint will be greatly appreciated. On 22/10/2009, at 16:10, glenn andreas wrote: On Oct 22, 2009, at 8:44 AM, Motti Shneor wrote: Thanks again. Regarding the Carbon Window problem, the FrontWindow() call was just an illustration. The WindowRef I'm supplying is of a vis

NSCarbonWindow vs NSSavePanel sheets - Incompatibility?

2009-10-26 Thread Motti Shneor
ow what to do --- Am I missing a critical configuration of the carbon window that I need to do before attaching an NSSavePanel to it? Maybe there is a real bug in the OS that I'm not aware of? Please help. Motti Shneor -- Senior Software Engineer

Releasing NSCarbonWindow question.

2009-10-26 Thread Motti Shneor
ct to release the NSCarbonWindow object (that's what it is really isn't it?) then I crash as soon as I return to the host, because the plugin's memory pool is released, and it contains an object with nonzero retain count. How can I break this catch-2

How can a plug-in bundle get access to its own resources?

2009-11-10 Thread Motti Shneor
orPrincipalClass] gives me wrong bundles. Is there a way out? Is there any trick, or technique to work around this bizarre deficiency of the Bundle mechanism? Any hint will be appreciated. Motti Shneor --

Re: How can a plug-in bundle get access to its own resources?

2009-11-10 Thread Motti Shneor
nd for the same class name there is only one bundle. Any other ideas? On 10/11/2009, at 13:57, Kiel Gillard wrote: > On 10/11/2009, at 10:51 PM, Benjamin Miller wrote: > >> On 10 Nov 2009, at 11:45, Motti Shneor wrote: >> >>> This may seem a silly question, but I canno

Re: How can a plug-in bundle get access to its own resources?

2009-11-15 Thread Motti Shneor
c) to know what is its containing bundle? On 10/11/2009, at 19:42, Douglas Davidson wrote: > > On Nov 10, 2009, at 4:59 AM, Motti Shneor wrote: > >> Thanks guys, but you may have not read all my message --- >> >> The [NSBundle bundleForClass:[self class]]; >

A problem with PopupButtonCell --- submenu selection not available

2010-07-05 Thread Motti Shneor
s -1 (unknown) result = [popUpButtonCell selectedItem]; returns nil! How can I resolve this thing? I MUST have popup menus with sub-menus! Is there a hidden member or method that will tell me what was the last selected menu item? Any hint will be appreciated. Motti Shneor --

Re: A problem with PopupButtonCell --- submenu selection not available

2010-07-05 Thread Motti Shneor
all its menu items? I saw a mysterious "submenuAction" category property accessor --- can it be of use here? What is the purpose of an NSMenu action? Thanks again. I already advanced a lot with your help! On 05/07/2010, at 15:24, Graham Cox wrote: On 05/07/2010, at 9:32 PM, M

Knowing how a Text Editing Session ended

2010-07-21 Thread Motti Shneor
subclassing NSTextField. Any hint will be greatly appreciated! Motti Shneor -- Senior Software Engineer Waves Audio ltd. [mailto: mot...@waves.com] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: Knowing how a Text Editing Session ended

2010-07-22 Thread Motti Shneor
dEditingNotification. I believe the same user info gets handed out in controlTextDidEndEditing: On 21 Jul 2010, at 15:30, Motti Shneor wrote: Hello Everyone. I'm implementing a programmatic wrapper for using an NSTextField on our custom view --- I programmatically create an NSTextField, Em

Responder-Chain question.

2011-09-13 Thread Motti Shneor
my controller be dropped out of the responder chain then? Thanks. Motti Shneor Senior software engineer and team leader Spectrum Reflections Ltd. -- ceterum censeo microsoftiem delendam esse --- ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) P

Re: Responder-Chain question.

2011-09-14 Thread Motti Shneor
my controllers being thrown out of the responder chain without my knowledge. Thanks again! On one hand, I need On Sep 13, 2011, at 6:48 PM, Conrad Shultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 9/13/11 5:01 AM, Motti Shneor wrote: >> Hello everyo

NSOutlineView doesn't call outlineView:shouldSelectItem: after selectRowIndexes:byExtendingSelection:

2011-11-14 Thread Motti Shneor
ange the selection in the OutlineView) but this is double implementation, and way too ugly to be a Cocoa program. Hints anyone? Motti Shneor, Senior Software Engineer and Team Leader, Spectrum Reflections LTD. Office eMail: mo...@spetrum-reflections.com --- ceterum censeo m

Re: NSOutlineView doesn't call outlineView:shouldSelectItem: after selectRowIndexes:byExtendingSelection:

2011-11-15 Thread Motti Shneor
n Mon, Nov 14, 2011 at 6:18 AM, Motti Shneor wrote: >> However, if we need to PROGRAMMATICALLY set the selection, using >> selectRowIndexes:byExtendingSelection: for example, >> outlineView:shouldSelectItem: is never called. > > From "Selecting and Deselecting

A TableView Binding question

2011-02-22 Thread Motti Shneor
Hello everyone. I have a TableView, connected to an ArrayController, configured to work against a CoreData Entity - the normal way, similar to what you find in the template bindings when you drag an Entity from the data-modelling tool into a View in Interface-Builder. Let's say the Entity is

Re: A TableView Binding question

2011-02-23 Thread Motti Shneor
That's not strictly true. Arrays are just fine in key paths when used purely > for KVC. Something like this: > > [myArray valueForKey:@"name"] > > will return the @"name" value of all objects in the array. The problem arises > if you want to observe suc

XCode question: "Copy Header" build step doesn't work for my Framework target.

2011-02-26 Thread Motti Shneor
o header files. Please advise Motti Shneor, Senior Software Engineer and Team Leader, Spectrum Reflections LTD. Software Development for the Macintosh Office eMail: mo...@spetrum-reflections.com --- ceterum censeo microsoftiem delendam esse --- _

Re: XCode question: "Copy Header" build step doesn't work for my Framework target.

2011-02-26 Thread Motti Shneor
didn't, it won't be > copied. > > On 26-Feb-2011, at 5:57 PM, Motti Shneor wrote: > >> Hello. >> >> I did all I know, and all I found in the Framework programming guide. >> >> The header file is checked on the Frameworks' target, a

CoreData questions: How to reset NSManagedObject, how to "Un-manage" an NSManagedObject.

2011-03-23 Thread Motti Shneor
duplicated model classes definition for everything. My question: Can I somehow detach an NSManagedObject from its context, and use it in an "Unmanaged" way? Hopefully I can later attach it to the context, or create another NSManagedOBject from its data? Motti Shneor, Spectrum Refle

Re: CoreData questions: How to reset NSManagedObject, how to "Un-manage" an NSManagedObject.

2011-03-24 Thread Motti Shneor
s all over the place (If the model changes, it is no longer in sync with those data objects). I was hoping to propose a solution that will eliminate those duplicate model classes. Thanks again! Motti. On 23/03/2011, at 20:27, Andreas Grosam wrote: > On Mar 23, 2011, at 8:21 AM, Motti

Are the Mac international resources available publicly?

2011-04-13 Thread Motti Shneor
developer via some API, or well-defined image names? I tried to play with NSLocale, but could not get any further than a list of countries. Any hint will make me very happy! Motti Shneor, Spectrum Reflections LTD. --- ceterum censeo microsoftiem delendam esse

CoreData problem - AttributeDescription seems invalid --- Where am I wrong?

2011-06-01 Thread Motti Shneor
SPropertyDescription to no avail. Nothing in the docs will tell me WHEN is it right to use the NSAttributeDescription in the above manner. Ideas anyone? Motti Shneor - Ceterum censeo Microsoftinem delendam esse __

CoreData problem - AttributeDescription seems invalid --- What am I doing wrong?

2011-06-02 Thread Motti Shneor
t; or similar properties in NSAttributeDescription and its ancestor NSPropertyDescription to no avail. Nothing in the docs will tell me WHEN is it right to use the NSAttributeDescription in the above manner. Ideas anyone? Motti Shneor

Re: CoreData problem - AttributeDescription seems invalid --- What am I doing wrong?

2011-06-07 Thread Motti Shneor
gt; } > > [1]: I believe you’ve assumed that for…in enumerates object values for > NSDictionary objects? > > -ev > > On Jun 2, 2011, at 20:01, Motti Shneor wrote: > >> Hello everyone. >> >> We work with a CoreData model that is memory-based. However,

NSArrayController loses selection upon CoreData refreshObject.

2011-06-19 Thread Motti Shneor
no avail. Nothing in the docs explains this behavior. However, the UI behavior is unbearable. Ideas anyone? Thanks --- Motti Shneor, Senior Software Engineer and Team Leader, Spectrum Reflections LTD. --- ceterum censeo microsoftiem delendam esse --- _

How to resolve bulk warning "Creating selector for nonexistent method ..."?

2010-01-25 Thread Motti Shneor
CTIVE_ARCH = YES) then I only get the warnings when I compile 32bit. 64bit compilation is free of warnings. These warnings worry me, as I might be using a wrong framework, and the code may break on a user machine. Any idea will be greatly appreciated. Motti Shneor --

Re: Knowing how a Text Editing Session ended

2010-07-27 Thread Motti Shneor
he Field editor (keyDown) which I don't like to do. Any observations? I think I saw something about Forms (grouped text fields) that allow moving between fields using arrows (like in a spreadsheet) but I don't know how to set up a "Form" environment with no fields... or just

Modal-loop Event-handling question

2012-04-30 Thread Motti Shneor
to end the sheet programmatically? somehow handle the mouse-up in an appropriate way? maybe my whole approach is wrong here? Any insight will be appreciated --- Thanks. Motti Shneor Spectrum Reflections Ltd. --- Ceterum censeo Microsoftinem del

Re: Modal-loop Event-handling question

2012-05-01 Thread Motti Shneor
Thanks Jens, for your enlightening comments. On 30/04/2012, at 20:55, Jens Alfke wrote: > > On Apr 30, 2012, at 1:24 AM, Motti Shneor wrote: > >> In our client-server app we sometimes present modal sheets on our main >> window. Following server notifications we sometimes

Accessibility issues with NSPopover

2012-05-09 Thread Motti Shneor
ews). There is very little documentation and help on NSPopovers, and to say the truth, it breaks Apple's most basic Cocoa design. NSPopover is neither Model, View or Controller. I wonder... Please advise... Motti Shneor, Mac OS X Software Architect &

Re: Accessibility issues with NSPopover

2012-05-10 Thread Motti Shneor
s the > accessibility-dev list. An accessibility engineer follows it fairly closely. > > — F > Motti Shneor, Mac OS X Software Architect & Team Leader Spectrum Reflections Ltd. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

Re: Accessibility issues with NSPopover

2012-05-12 Thread Motti Shneor
thing like makeKeyAndOrderFront which doesn't work either. Motti shneor Senior software engineer & Team leader Spectrum Reflections Ltd. Sent from my iPhone ב-11 במאי 2012, בשעה 19:22, Curt Clifton כתב/ה: > On May 10, 2012, at 2:06 AM, Motti Shneor wrote: > >> does anybody

Re: First Responder

2012-05-12 Thread Motti Shneor
oller. It is high enough in the view hierarchy, and in the responder chain to be always available (when some window is active), but when user switched between windows --- he'll have different responder-chains that lead (up the chain) to different window controllers! I hope this explanation

Animating subView moving from one superview to another (MacOS)

2012-06-06 Thread Motti Shneor
ot; animation (position/bounds) on the moving sub-views, because they need to change their parent views, and they would simply disappear when I will try to "move" them around, because they fill up all their suprview (NSSplitView). Any help would be appreciated. Thanks! Motti Shneor.

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

2012-07-02 Thread Motti Shneor
Apple's implementation of adjustSubViews, or other parts of NSSplitView? I really need an advice here. Thanks (and sorry for the lengthy question). Motti Shneor. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

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

2012-07-02 Thread Motti Shneor
3 ביול 2012, at 03:14, Graham Cox wrote: > On 03/07/2012, at 12:21 AM, Motti Shneor wrote: > >> I really need an advice here. > > This will sound flippant but it's not meant to be: implement your own split > view. > > NSSplitView is the most bizarre piece of desi

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

2012-07-03 Thread Motti Shneor
Thanks again Graham and all the rest --- We're going somewhere now. On 3 ביול 2012, at 08:22, Graham Cox wrote: > > On 03/07/2012, at 2:46 PM, Motti Shneor wrote: > >> have the feeling I "almost got it", and I even think I understand why and >> wh

MaxOS 10.7 full-screen animation corrupts my UI --- how to avoid?

2012-07-10 Thread Motti Shneor
uot;snapshot" of the window contents, instead of live-resizing of the whole view-hierarchy throughout the animation? Can someone "spare" a few lines of code that will do a simple linear resizing animation that will NOT go below minimum? Any advice will be greatly

How to implement an object whose properties are really dictionary entries.

2012-07-11 Thread Motti Shneor
t looked ugly. I strongly feel there must be a simple and elegant way to do this. To have a mutable dictionary react to the "syntactic sugar" of dot notation. Is there a good, general solution for this? Motti Shneor, Spectrum Reflections Ltd. _

Re: How to implement an object whose properties are really dictionary entries.

2012-07-11 Thread Motti Shneor
ta." Why reinvent > the wheel? All the functionality is already there, and then some. > > OP: If for whatever reason you feel that you need to reinvent the wheel, or > you need your own backing store that isn't CD-friendly, it seems much simpler > to me to just overr

Re: How to implement an object whose properties are really dictionary entries.

2012-07-12 Thread Motti Shneor
Thanks again Keary. On 12 ביול 2012, at 02:54, Keary Suska wrote: > On Jul 11, 2012, at 2:45 PM, Motti Shneor wrote: >> Of what I read from everyone, and after examining the suggested code from >> Jens Alfke, I think I'm inclined to something simpler, hinted by Keary

Re: How to implement an object whose properties are really dictionary entries.

2012-07-12 Thread Motti Shneor
plements those naming conventions? On 12 ביול 2012, at 10:59, Quincey Morris wrote: > On Jul 12, 2012, at 00:14 , Motti Shneor wrote: > >> On 12 ביול 2012, at 02:54, Keary Suska wrote: >> >>> On Jul 11, 2012, at 2:45 PM, Motti Shneor wrote: >>>> Of wh

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

2012-07-17 Thread Motti Shneor
יול 2012, at 03:14, Graham Cox wrote: > > On 03/07/2012, at 12:21 AM, Motti Shneor wrote: > >> I really need an advice here. > > > This will sound flippant but it's not meant to be: implement your own split > view. > > NSSplitView is the most bizarre piece o

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

2012-07-19 Thread Motti Shneor
e for my needs. > Regards > Gideon > Motti Shneor ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple

Re: 10.7 Full-Screen transition animation corrupts my UI - how to avoid?

2012-07-19 Thread Motti Shneor
ul 10, 2012, at 10:39 AM, Motti Shneor wrote: >> If the window started in its minimal size, this animation will SHRINK IT >> BELOW THE MINIMAL size and will corrupt my UI beyond repair. My views are >> receiving setFrameSize: with unsupported size. > > Not sure about prevent

Re: 10.7 Full-Screen transition animation corrupts my UI - how to avoid?

2012-07-21 Thread Motti Shneor
is wrong either in the documentation, my understanding of it, or Cocoa full-screen animation implementation. On 19 ביול 2012, at 18:09, Kyle Sluder wrote: > On Jul 19, 2012, at 5:17 AM, Motti Shneor wrote: > >> Hi Steve >> >> How can a view disregard resizing req

Re: 10.7 Full-Screen transition animation corrupts my UI - how to avoid?

2012-07-22 Thread Motti Shneor
spite my imposed minSize of 579 pixels, and in spite of the implementation you suggested. What now? On 19 ביול 2012, at 18:09, Dennis wrote: > On Jul 19, 2012, at 5:17 AM, Motti Shneor wrote: > >> How can a view disregard resizing request? It is simply resized > > How abo

How to anchor a child-window to its parent top-right (or other point) while parent resizes.

2012-07-22 Thread Motti Shneor
ens. I could fix this by moving my child-window in the "windowWillResize" or windowDidResize" delegate of the parent, but it is not easy to know exactly what happened (how did the anchor point on the parent, moved in screen-coordinates) and so move the child-window. Any simp

Re: 10.7 Full-Screen transition animation corrupts my UI - how to avoid?

2012-07-23 Thread Motti Shneor
2, Quincey Morris wrote: > On Jul 22, 2012, at 02:00 , Motti Shneor wrote: > >> - (NSSize)windowWillResize:(NSWindow *)sender toSize:(NSSize)frameSize { >>NSSize min = [sender minSize]; >>NSSize max = [sender maxSize]; >>if (frameSize.width > m

Re: 10.7 Full-Screen transition animation corrupts my UI - how to avoid?

2012-07-29 Thread Motti Shneor
c. Find the "secret little thing" that prevents this nasty bug from happening in OTHER applications :) Any ideas? On 23 ביול 2012, at 00:25, Quincey Morris wrote: > (BTW, your reply from which I'm quoting below wasn't CC'ed to the list, but > it looks like it was in

Re: How to anchor a child-window to its parent top-right (or other point) while parent resizes.

2012-07-29 Thread Motti Shneor
On 22 ביול 2012, at 19:52, Keary Suska wrote: > On Jul 22, 2012, at 5:34 AM, Motti Shneor wrote: > >> This seems a real newbie question, but the solutions I found seem too >> complicated for my task. >> >> I have a non-NSPopover pop-over info window (can't

guidelines for icon design, that works well with Apple standard highlighting scheme

2012-08-02 Thread Motti Shneor
loper site, but could not find this information anymore --- only guidelines for designing a "good application icon" which is not my problem. Can anyone remember where this information was? Thanks. Motti Shneor Ceterum censeo Microso

Binding NSSegmentedControl selection to user defaults

2012-08-28 Thread Motti Shneor
r, changing this to only single selection did not cure the crash. Any ideas? Motti Shneor ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at

Re: Binding NSSegmentedControl selection to user defaults

2012-08-29 Thread Motti Shneor
ntroller.values.myButtonState". Or maybe I miss something important here? On 28 באוג 2012, at 21:53, Keary Suska wrote: > > On Aug 28, 2012, at 9:28 AM, Motti Shneor wrote: > >> But when I'm trying to do this in my XCode 4.2 project, in a .xib file, I >&g

KVO Question: How to programmatically determine if one object is observing another on a keyPath and context?

2012-09-09 Thread Motti Shneor
ll key-paths and contexts. should return YES if object was an observer, and was removed, NO otherwise. Any ideas? Motti Shneor Spectrum Reflections Ltd. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mod

Re: KVO Question: How to programmatically determine if one object is observing another on a keyPath and context?

2012-09-09 Thread Motti Shneor
On 9 בספט 2012, at 22:04, Ken Thomases wrote: > On Sep 9, 2012, at 4:32 AM, Motti Shneor wrote: > >> Hi everyone. This seems a novice question, but I could not find any >> high-level approach for that. >> >> Some details of my special need: I have an NSViewContro

Re: KVO Question: How to programmatically determine if one object is observing another on a keyPath and context?

2012-09-10 Thread Motti Shneor
eing observed" problems went > away. > > - Original Message - > From: "Quincey Morris" > To: "Motti Shneor" > Cc: "Cocoa-Dev List" > Sent: Sunday, September 9, 2012 4:26:27 PM > Subject: Re: KVO Question: How to programmatically determin

Re: KVO Question: How to programmatically determine if one object is observing another on a keyPath and context?

2012-09-10 Thread Motti Shneor
2, at 15:07, Richard Somers wrote: > On Sep 9, 2012, at 3:32 AM, Motti Shneor wrote: > >> - (NSUInteger)isObserver:(id)object on keyPath:(NSString *)keyPath >> withContext:(void *)context]; // the returned number is the count of same >> observances with 0 as not-observing

Re: KVO Question: How to programmatically determine if one object is observing another on a keyPath and context?

2012-09-10 Thread Motti Shneor
he internal KVO mechanism. On 10 בספט 2012, at 14:23, James Montgomerie wrote: > On 10 Sep 2012, at 11:40, Motti Shneor wrote: >> My question is general. Supposedly I could NOT start observing once, and >> stop it once. Reasons: >> 1. There are many instances of that NSViewContro

Re: KVO Question: How to programmatically determine if one object is observing another on a keyPath and context?

2012-09-11 Thread Motti Shneor
On 10 בספט 2012, at 20:22, Richard Somers wrote: > On Sep 10, 2012, at 5:59 AM, Motti Shneor wrote: > >> Although I don't need such heavy-weapons, and I don't at all deal with >> programmatic bindings here, I'd still like (if possible) to learn some more &g

Fwd: Getting notified when visible contents of a UIWebView has changed

2013-04-04 Thread Motti Shneor
r me, would be to get notified when the UIWebView decides to re-display (or redraw?) its contents after some manipulation (drawing, zooming, rotating, animating etc.). Can anyone hint on where to start here? Thanks. Motti Shneor. Motti Shneor e-mail: motti.shn...@gmail.com phone: +97

  1   2   >