|
Re: String handling not working — am I going nuts?
Are the lines terminated with a carriage return/line feed pair or are they terminated with the character string "\r\n”. The results of step 2 and 3 are what I’d expect if the string contained the
Are the lines terminated with a carriage return/line feed pair or are they terminated with the character string "\r\n”. The results of step 2 and 3 are what I’d expect if the string contained the
|
By
Marco S Hyman
·
#1216
·
|
|
String handling not working — am I going nuts?
Can you take a look at this for me? I think I’ve been cooped up at home too long, because whatever is going on, I’m missing it.
Context:
I’m working on a data import function for a new app. It
Can you take a look at this for me? I think I’ve been cooped up at home too long, because whatever is going on, I’m missing it.
Context:
I’m working on a data import function for a new app. It
|
By
Rick Aurbach
·
#1215
·
|
|
Clicking in SwiftUI View
macOS 15.4
I have a SwiftUI ContentView, which contains a few vertically stacked Views.
For one of these I need the following functionality:
when the mouse moves inside the view, or when the view
macOS 15.4
I have a SwiftUI ContentView, which contains a few vertically stacked Views.
For one of these I need the following functionality:
when the mouse moves inside the view, or when the view
|
By
Gerriet M. Denkmann
·
#1214
·
|
|
Re: Canceling NSSavePanel Hang App
Hi Sandor,
from the stacks it looks like you’ve Finder Extensions installed on your system. Can you disable / uninstall them and verify if the issue is still reproducible?
Best,
Rafał
Hi Sandor,
from the stacks it looks like you’ve Finder Extensions installed on your system. Can you disable / uninstall them and verify if the issue is still reproducible?
Best,
Rafał
|
By
Rafael Bugajewski
·
#1213
·
|
|
Re: Canceling NSSavePanel Hang App
Thanks Sak,
My discovery seemed random and unsettling, so I kept digging. I will read the docs you’re referring to But a sheet does seem to do the trick. What’s weird is this code has worked for
Thanks Sak,
My discovery seemed random and unsettling, so I kept digging. I will read the docs you’re referring to But a sheet does seem to do the trick. What’s weird is this code has worked for
|
By
Sandor Szatmari
·
#1212
·
|
|
Re: Canceling NSSavePanel Hang App
No, I have a non-sandboxed app and it works fine. I think the problem is that you are using NSSavePanel:runModal. If you look in the doc'n, it says:
"This method invokes NSApplication's
No, I have a non-sandboxed app and it works fine. I think the problem is that you are using NSSavePanel:runModal. If you look in the doc'n, it says:
"This method invokes NSApplication's
|
By
Sak Wathanasin
·
#1211
·
|
|
Re: Canceling NSSavePanel Hang App
Already reading app sandbox design guide, was hoping for pointers to other apple resources, videos, etc…
Thanks,
Sandor
Already reading app sandbox design guide, was hoping for pointers to other apple resources, videos, etc…
Thanks,
Sandor
|
By
Sandor Szatmari
·
#1210
·
|
|
Re: Canceling NSSavePanel Hang App
Took a guess and enabled sandbox and added read/write to user selected file and the hang went away. Is it true that I cannot make an unsandboxed app and uses the NSSavePanel? I know this is a data
Took a guess and enabled sandbox and added read/write to user selected file and the hang went away. Is it true that I cannot make an unsandboxed app and uses the NSSavePanel? I know this is a data
|
By
Sandor Szatmari
·
#1209
·
|
|
Canceling NSSavePanel Hang App
Ran into an interesting issue today…
Mac app
Xcode 9.4.1, 32bit, 10.12 SDK, 10.6 Deployment Target
non-sandboxed app
I am opening an NSSavePanel to allow a user to save the
Ran into an interesting issue today…
Mac app
Xcode 9.4.1, 32bit, 10.12 SDK, 10.6 Deployment Target
non-sandboxed app
I am opening an NSSavePanel to allow a user to save the
|
By
Sandor Szatmari
·
#1208
·
|
|
Re: Drawing to a PDF context
Jim,
Yea, we are printing and distributing the PDF so it’s important to retain the vector nature of the PDF. People need to be able to zoom in to read the finer details.
Thanks!
Jim,
Yea, we are printing and distributing the PDF so it’s important to retain the vector nature of the PDF. People need to be able to zoom in to read the finer details.
Thanks!
|
By
Sandor Szatmari
·
#1207
·
|
|
Re: Drawing to a PDF context
Quincey,
I tried a couple tweaks of the drawing coordinates but I should investigate more.
Also interesting. If I call [NSGraphics currentContext] before trying to set the context it returns
Quincey,
I tried a couple tweaks of the drawing coordinates but I should investigate more.
Also interesting. If I call [NSGraphics currentContext] before trying to set the context it returns
|
By
Sandor Szatmari
·
#1206
·
|
|
Re: Drawing to a PDF context
When I wrote an app that added things to an existing PDF a couple years ago, I was able to use text and custom annotations to display elements on a document in a PDFView, but was unable to figure out
When I wrote an app that added things to an existing PDF a couple years ago, I was able to use text and custom annotations to display elements on a document in a PDFView, but was unable to figure out
|
By
Jim
·
#1205
·
|
|
Re: Drawing to a PDF context
Well, by default, NWView coordinates are flipped vs. CGContext coordinates. I suggest you try temporarily forcing the point you’re drawing at to be the center of the context or view, and see if the
Well, by default, NWView coordinates are flipped vs. CGContext coordinates. I suggest you try temporarily forcing the point you’re drawing at to be the center of the context or view, and see if the
|
By
Quincey Morris
·
#1204
·
|
|
Drawing to a PDF context
I need to replace calls to CGShowTextAtPoint() with calls to -drawAtPoint:withAttributes:
I made this change and drawing fails… :/
i.e. no text rendered, no exception, logging of errors, etc.
I need to replace calls to CGShowTextAtPoint() with calls to -drawAtPoint:withAttributes:
I made this change and drawing fails… :/
i.e. no text rendered, no exception, logging of errors, etc.
|
By
Sandor Szatmari
·
#1203
·
|
|
Re: NSAlert boxes ...
Oh interesting - it looks like when you call [NSAlert beginSheetModalForWindow:completionHandler:], the alert gets retained by the parent window's attachedSheet property. So you're right, no issues
Oh interesting - it looks like when you call [NSAlert beginSheetModalForWindow:completionHandler:], the alert gets retained by the parent window's attachedSheet property. So you're right, no issues
|
By
Jon Gotow
·
#1202
·
|
|
Re: NSAlert boxes ...
That is the case I’m talking about and no, it works fine even if you don’t “worry” about the lifecycle.
Just alloc + init + autorelease, then beginSheet…. it works, it has always worked
That is the case I’m talking about and no, it works fine even if you don’t “worry” about the lifecycle.
Just alloc + init + autorelease, then beginSheet…. it works, it has always worked
|
By
Graham Cox
·
#1201
·
|
|
Re: NSAlert boxes ...
You're making this far more complicated than it is (talking about running the alert asynchronously, etc).
NSModalResponse choice = [alert runModal];
will run the alert synchronously. Note that it
You're making this far more complicated than it is (talking about running the alert asynchronously, etc).
NSModalResponse choice = [alert runModal];
will run the alert synchronously. Note that it
|
By
Jon Gotow
·
#1200
·
|
|
Re: NSAlert boxes ...
That’s exactly what I’m saying - you are taking ownership of it with alloc+init.
Then you release it or autorelease it within the scope of setting it up. Normal rules.
But the point is the alert
That’s exactly what I’m saying - you are taking ownership of it with alloc+init.
Then you release it or autorelease it within the scope of setting it up. Normal rules.
But the point is the alert
|
By
Graham Cox
·
#1199
·
|
|
Re: NSAlert boxes ...
The MRR rules are straight forward and deviating from them because the runloop may retain the alert is asking for trouble in my opinion. There is no harm in taking ownership of the alert and
The MRR rules are straight forward and deviating from them because the runloop may retain the alert is asking for trouble in my opinion. There is no harm in taking ownership of the alert and
|
By
Sandor Szatmari
·
#1198
·
|
|
Re: NSAlert boxes ...
Thanks Graham and Alex.
I had reached the same sort of conclusions - but could not find any corroborative info anywhere ....
Peter
Thanks Graham and Alex.
I had reached the same sort of conclusions - but could not find any corroborative info anywhere ....
Peter
|
By
Peter Hudson
·
#1197
·
|