adding arc to a fundamentally non-arc project

2017-07-15 Thread Matthew Weinstein
Trying to move from QTKit to AVKit. Compiling on El Capitan (at the moment). So I have a handler that is arc and handles all the AVKit stuff and compiled with the -fobjc-arc flag in the build phases... I create and assign the handler to a document object using the myhandler = [[MWArcHandler all

Re: Cocoa-dev Digest, Vol 11, Issue 139

2014-03-13 Thread Matthew Weinstein
cpage characterIndexAtPoint: pnt1]; selRange = NSMakeRange(dx1, dx2-dx1); //I know this is too simple; but for now only dealing with selections on a single page. On Mar 13, 2014, at 12:00 PM, wrote: > > On 11 Mar 2014, at 17:37, Matthew Weinstein wrote: > >> Tryi

Getting a selection range from a pdfselection...

2014-03-11 Thread Matthew Weinstein
edge (of course). But if I just want the offset and length, how do I extract that? Frustrated Matthew Weinstein ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contac

Re: Finding column of just edited nstableview cell

2013-08-30 Thread Matthew Weinstein
thank you that's it! On Aug 30, 2013, at 10:44 AM, Kyle Sluder wrote: > On Fri, Aug 30, 2013, at 10:15 AM, Matthew Weinstein wrote: >> Dear devs, >> I must be missing something obvious. Trying to find out the column (and >> row) of the table cell that a user has just

Finding column of just edited nstableview cell

2013-08-30 Thread Matthew Weinstein
Dear devs, I must be missing something obvious. Trying to find out the column (and row) of the table cell that a user has just edited. I'm an observer of NSControlTextDidEndEditingNotification, but selectedColumn seems not to work at that point. --MW

Re: lion/mt. lion: preventing qtmovieview from taking key strokes

2012-09-18 Thread Matthew Weinstein
So problem solved by having a subclass of QTMovieView check in overridden performKeyEquivalent: whether it's firstResponder and returning NO if it isn't and passing to super if it is. On Sep 15, 2012, at 4:28 PM, Eric Wing wrote: > On 9/15/12, Matthew Weinstein wrote: >&g

lion/mt. lion: preventing qtmovieview from taking key strokes

2012-09-15 Thread Matthew Weinstein
Dear programmers, I have a window with a nstextview and a qtmovieview.. The problem is that the movieview steals all of the keystrokes so the left and right arrow keys never make it to the nstextview. I have tried subclassing qtmovieview and capturing keydown and keyup, but that didn't work... H

Document-scoped security conundrum (and bug)...

2012-06-24 Thread Matthew Weinstein
t, I can't make the bookmark since i need an absolute path (actually the documentation is wrong, it's absouteURl) to seal the deal. Am I missing something? Must I force the user to save before continuing. In the end, it just seems that all this security is getting in the way of use

Re: Lion permission problems

2012-06-23 Thread Matthew Weinstein
s etc that the user has chosen. Those component PDFs > reside elsewhere than within your app space, correct? > > > > On 2012-06-23, at 1:26 PM, Matthew Weinstein wrote: > >> Unfortunately that undoes the automation idea. The time saving here is that >> by jus

Re: Lion permission problems

2012-06-23 Thread Matthew Weinstein
re managing a single "product PDF" > which is constructed by your app based upon metadata which describes the > specific component PDFs etc that the user has chosen. Those component PDFs > reside elsewhere than within your app space, correct? > > > > On 2012

Re: Lion permission problems

2012-06-23 Thread Matthew Weinstein
un 23, 2012, at 1:22 PM, Kyle Sluder wrote: > On Jun 23, 2012, at 1:16 PM, Matthew Weinstein wrote: > >> The whole idea of the app is so that users can automate the combining of >> different PDFs; users should be able to swap out different pdfs and then the >> program wil

Re: Lion permission problems

2012-06-23 Thread Matthew Weinstein
users can't substitute say this year's calendar for last year's. On Jun 23, 2012, at 1:12 PM, Kyle Sluder wrote: > On Jun 23, 2012, at 12:09 PM, Matthew Weinstein wrote: > >> I think the temp.security thing will work, but I'm wondering what happens if >> a us

Re: Lion permission problems

2012-06-23 Thread Matthew Weinstein
cessing files outside of the approved > areas/domains (music, photos, documents(?) ) will ALWAYS require user > interaction. > > Apple is really screwing us in this one. > > I hope that Conrad is right with his suggestion. > > On Jun 23, 2012, at 12:17 PM, Matthew Weinste

Lion permission problems

2012-06-23 Thread Matthew Weinstein
Dear cocoa-dev, So I'm wondering how in the maze of sandboxed apps how to get my app to work properly. What it does is wrap around pdf files so that they can be combined, separated; etc. It doesn't actually change the original pdfs, just remembers their locations, reads them in and then writes t

Re: More PDFView mysteries...

2012-06-14 Thread Matthew Weinstein
ocated the load code so it was activated by a button rather than the windowController: same problem. There's a definite pdfview problem... Solutions? On Jun 14, 2012, at 5:08 PM, Graham Cox wrote: > > On 15/06/2012, at 8:15 AM, Matthew Weinstein wrote: > >> It almost feel

More PDFView mysteries...

2012-06-14 Thread Matthew Weinstein
do it programattically at the end of the ...didLoadNib: method, nothing, doesn't work. Ideas? Anyone else having pdfview lion problems. Matthew Weinstein Professor of Science Education Education Program U.W. - Tacoma 253 692-4787 matth...@u.washington.edu Campus Box: 358435 1900 Commerce Street

Re: PDFThumbnailView Problem (kind of)

2012-05-23 Thread Matthew Weinstein
You can't believe how easy that was to implement in cocoa: [myThumbnailView setThumbnailSize: [myThumbnailView thumbnailSize]]; That's it; works like a charm. On May 22, 2012, at 11:37 PM, Antonio Nunes wrote: > On 23 May 2012, at 03:53, Matthew Weinstein wrote: > >

PDFThumbnailView Problem (kind of)

2012-05-22 Thread Matthew Weinstein
s" to work; but I can't click on the thumbnails; they're there, but not clickable, until I resize the window, then all is well. Any idea of what's going on and what I need to do to "liberate" my thumbnailview (I've tried sending a setN

Losing attachments when saving rtfd

2012-04-24 Thread Matthew Weinstein
eFilenames:YES]; What's created is an rtfd with only the rtf file in it and no images Thoughts? Help? --Matthew Weinstein ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Re: Question about hebrew in textfields and textviews

2012-04-11 Thread Matthew Weinstein
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 textview in the window in MainMenu.xib. Changing the input to hebrew, running the program does change the text

Question about hebrew in textfields and textviews

2012-04-11 Thread Matthew Weinstein
justifies the other way? --Matthew Weinstein ___ 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

Re: [SOLVED]Preventing lion from saving state...

2011-08-23 Thread Matthew Weinstein
YES forKey:@"ApplePersistenceIgnoreState"]; On Aug 23, 2011, at 3:56 PM, Graham Cox wrote: > > On 24/08/2011, at 4:25 AM, Matthew Weinstein wrote: > >> My approach has landed up being just as kludgy, and I'm really annoyed that >> apple has made no way to opt out of this "f

Preventing lion from saving state...

2011-08-23 Thread Matthew Weinstein
de wrote: > On Mon, 22 Aug 2011 12:39:01 -0700, Matthew Weinstein said: > >> I'm working on updating my app for lion. For the time being, just to get >> users able to proceed I need to disable Lion's restore savedstate >> default. I don't want L

Overriding Lion's SaveState

2011-08-22 Thread Matthew Weinstein
m. I can't find how to do that in the api for NSApp, am I missing something? I need the program to force this condition, rather than leave it to users (I did find a way users can turn off this feature). Thanks in advance, Matthew Weinstein Creator of TAMS Analyzer___

QTKit Question

2010-07-31 Thread Matthew Weinstein
I'm using a QTMovieView in my project and a user would like be able to zoom in. Looking at the API there seems to be a setZoomButtonsVisible: selector, but it doesn't seem to work on my set up. Does this only work if they have bought QT Pro? I'm on the latest snow leopard, and I notice it says

Help system question...

2010-06-11 Thread Matthew Weinstein
n that, i.e., once I change or edit the helps system how do I get it to use the new version. Thanks, Matthew Weinstein ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: NSTableView action & doubleAction...

2010-06-06 Thread Matthew Weinstein
k and applies that action to a selection in a textview. So it works fine. I just want to make sure that I'm not counting on a bug or some other defect (in my very meager programming skills or apple's api). On Jun 6, 2010, at 6:44 PM, Matt Neuburg wrote: > On Sun, 6 Jun 2010 18:12

NSTableView action & doubleAction...

2010-06-06 Thread Matthew Weinstein
Dear Programmers, I set both my tableView's actions and doubleActions programmatically in my document's windowdidloadnib... I find that if I double click It calls both! Is this expected behavior? Is there a method to this madness? Matthew Weinstein Associate Professor of Science

Ignore last problem...

2010-06-06 Thread Matthew Weinstein
Sometimes wording confuses: I read "send on enter" as meaning "send on beginning" rather than as the enter key. Mathew ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contac

NSTextField sending action unbidden...

2010-06-06 Thread Matthew Weinstein
t sends on hitting return only? Matthew Weinstein Associate Professor of Science Education Education Program U.W. - Tacoma 253 692-4787 matth...@u.washington.edu Campus Box: 358435 1900 Commerce Street Tacoma, WA 98402-3100 Office: (253) 692-4787 FAX: (253

Re: PDFSelection from a range

2010-06-05 Thread Matthew Weinstein
A solution to my own problem. This is from a category I created for PDFDocument. Seems to work. The + and - 1's are strictly trial and error. Seems to work, even with some pretty complex PDFS (created by comicLife, for instance). Probably not the pithiest way to do this (ans is completely super

PDFSelection question

2010-06-05 Thread Matthew Weinstein
any assistance. Matthew Weinstein Associate Professor of Science Education Education Program U.W. - Tacoma 253 692-4787 matth...@u.washington.edu Campus Box: 358435 1900 Commerce Street Tacoma, WA 98402-3100 Office: (253) 692-4787 FAX: (253) 692-5612

PDFKit cpSelections?

2010-05-26 Thread Matthew Weinstein
#x27; Program received signal: “SIGABRT”. Matthew Weinstein Associate Professor of Science Education Education Program U.W. - Tacoma 253 692-4787 matth...@u.washington.edu Campus Box: 358435 1900 Commerce Street Tacoma, WA 98402-3100 Office:

Re: Cocoa-dev Digest, Vol 7, Issue 585

2010-05-26 Thread Matthew Weinstein
Aparently not. I did implement initWithCoder; it doesn't get called. Other suggestions? PS. I am using a nib. On May 26, 2010, at 12:02 PM, cocoa-dev-requ...@lists.apple.com wrote: > ay 26, 2010, at 11:38 AM, Matthew Weinstein wrote: >> I think I'm on the verge of success

initializing a pdfview

2010-05-26 Thread Matthew Weinstein
I think I'm on the verge of success with my attempt to create a selection rectangle (that doesn't select text) for pdfview, but I'm unclear what init routines I should use in my pdfview subclass. - (id)initWithFrame:(NSRect)frameRect doesn't seem to get called--as it does i

Re: Creating a PDFSelection...

2010-05-25 Thread Matthew Weinstein
at 03:01, Matthew Weinstein wrote: > >> The PDFSelection class as far as I can tell basically supports what in >> Preview.app is the "text" tool on the toolbar. The selection tool in >> Preview.app selects an arbitrary rectangle, even if there's no text behind

Re: Creating a PDFSelection...

2010-05-25 Thread Matthew Weinstein
s no text behind the image. So, is there some way of changing the behavior of the given PDFSelection, or do I have to "hand code" this (using the Cropped image example code, for instance)? On May 25, 2010, at 11:05 AM, Antonio Nunes wrote: > On 25 May 2010, at 18:32, Matthew Wein

Creating a PDFSelection...

2010-05-25 Thread Matthew Weinstein
Dear progammers, Thanks for all the help! Onto the next problem... Users need to be able to select sections of a pdfView, and I need to be able to save and analyze the selections (e.g., do they overlap). I also need to be able to restore the selections later. So the question is, can I use PDFSe

Re: NSMovieView -> QTMovieView; rate problems...

2010-05-24 Thread Matthew Weinstein
an NO. On May 22, 2010, at 3:42 PM, James W. Walker wrote: > > On May 22, 2010, at 1:26 PM, Matthew Weinstein wrote: > >> One important aspect of my app is teh ability to speed and slow audio (and >> video playback). On the old NSMovieview this worked like an analog tape

NSMovieView -> QTMovieView; rate problems...

2010-05-22 Thread Matthew Weinstein
Dear developers, One important aspect of my app is teh ability to speed and slow audio (and video playback). On the old NSMovieview this worked like an analog tape machine: if you used NSMovieview setRate: it would slow the sound down smoothly but make it lower; which is fine. Under the new reg

Re: NSKeyedArchiver: confusion

2010-05-18 Thread Matthew Weinstein
On May 18, 2010, at 1:40 PM, Matthew Weinstein wrote: > >> The problem: The old @"codedDataArray" is not replaced! When I open the file >> the old junk is all there. The old array is not discarded and replaced with >> the new (myRecs) array. So

NSKeyedArchiver: confusion

2010-05-18 Thread Matthew Weinstein
; is not replaced! When I open the file the old junk is all there. The old array is not discarded and replaced with the new (myRecs) array. So I cannot use NSKeyedArchiver like an NSMutableDictionary? Hoping for clarity and possible approaches Thanks, Matthew Weinstein Matthew Weinstein Assoc

NSImage and NSImageView questions

2010-05-08 Thread Matthew Weinstein
transformation of the selection rectangle and convert back and forth... Ideas? Help? Thanks in advance, Matthew TAMS Analyzer: Open source qualitative research tool for OS X http://tamsys.sf.net/ Matthew Weinstein Associate Professor of Science Education Education Program U.W. - Tacoma 253 692-4787

Ignore last message...

2010-02-15 Thread Matthew Weinstein
The XCode problem was solved. Guard Molloch [sic] was the culprit. --Matthew ___ 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)list

Debugger issue

2010-02-15 Thread Matthew Weinstein
Dear XCode folk, I'm sure this is obvious but it's got me stumped and googling has produced no solutions. The program always runs with the debugger when I launch with xcode (3.1.4). It doesn't matter if I pick build and go or go; the debugger always launches. In previous versions (2.5) I

Re: Dealing with rotten nibs

2010-02-06 Thread Matthew Weinstein
It's associated with an NSDocument... On Feb 6, 2010, at 9:41 AM, edole...@gmail.com wrote: is it assoc with a view controller class? -- Sent from the Verizon network using Mobile Email --Original Message-- From: Matthew Weinstein To: Date: Sat, Feb 6, 8:55 AM -0800 Su

Dealing with rotten nibs

2010-02-06 Thread Matthew Weinstein
fixes? --Matthew Weinstein ___ 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

Re: NSTableView questions (take 2)

2010-02-02 Thread Matthew Weinstein
I can't select multiple values On Feb 2, 2010, at 8:53 AM, Corbin Dunn wrote: On Feb 2, 2010, at 8:32 AM, Matthew Weinstein wrote: Still trying to find a way to turn off setAllowsMultipleSelection just as the table becomes the responder. Is there some way of anticipating th

Re: NSTableView questions (take 2)

2010-02-02 Thread Matthew Weinstein
I want multiple values of table B to be selected; but I click on table B I want to make sure I can't select multiple values On Feb 2, 2010, at 8:53 AM, Corbin Dunn wrote: On Feb 2, 2010, at 8:32 AM, Matthew Weinstein wrote: Still trying to find a way to turn off setAllowsMultipleSelection

NSTableView questions (take 2)

2010-02-02 Thread Matthew Weinstein
Still trying to find a way to turn off setAllowsMultipleSelection just as the table becomes the responder. Is there some way of anticipating this, a "willbecomefirstresponder" kind of a notification? Thanks in advance, Matthew Weinstein

dynamic changing of ability to set multiple selections...

2010-02-01 Thread Matthew Weinstein
Dear cocoa-ites, I have multiple linked NSTableViews in an app. Depending on which one is clicked in the others change their contents. Now normally if someone clicks on table 1 they should not be allowed to have multiple selections; but if they click in table 2, the application needs to be

nstoken for nstextview...

2008-05-02 Thread Matthew Weinstein
ooking for. http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSTokenField_Class/Reference/Reference.html -Mike On May 2, 2008, at 10:27 PM, Matthew Weinstein wrote: Hoping that there is somewhere a class or a demo of how to code for nstextview and the like little ob

Mail type in-line objects

2008-05-02 Thread Matthew Weinstein
Hoping that there is somewhere a class or a demo of how to code for nstextview and the like little objects like the mail addresses in the to: line of apple mail. Hope someone can help; it would help bring my app to a new level. Matthew Weinstein [EMAIL PROTECTED