Re: Cocoa-dev Digest, Vol 19, Issue 24

2022-04-04 Thread Richard Charles via Cocoa-dev
> On Apr 4, 2022, at 8:58 AM, Michal L. Wright via Cocoa-dev > wrote: > > Hi, > > I have a rather large Objective C project that I'm building in Xcode 13.3, > running under macOS 12.3. > (98 .m files with matching .h files, and a dozen or so .h files containing > defines, with the release

Re: Distributing Mac App to Registered Devices

2021-06-23 Thread Richard Charles via Cocoa-dev
guration to use development signing. Notarized builds are reserved for archiving. Just saying that Apple is steering everyone in that direction. Apple's answer to the problem is registering devices in your developer account. Except is does not work with mac devices. --

Distributing Mac App to Registered Devices

2021-06-23 Thread Richard Charles via Cocoa-dev
device UDID of the beta tester’s machine. However it does not work. The registered machine is still presented with a malicious software warning when opening the app. So has anyone gotten this to work? https://developer.apple.com/documentation/xcode/distributing-your-app-to-registered-devices --

Re: Several different NSUserDefaults in the same app?

2021-04-04 Thread Richard Charles via Cocoa-dev
t are the positive benefits? I have only ever been infuriated with this process during development. --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Cont

Re: Several different NSUserDefaults in the same app?

2021-04-04 Thread Richard Charles via Cocoa-dev
s > yourself in your own files. Just make sure you don’t use the same file name > as the system uses, or it will overwrite yours. You can modify it as you > suggested previously, though. So Jack I am curious, do you use alloc then init or i

Re: Several different NSUserDefaults in the same app?

2021-04-03 Thread Richard Charles via Cocoa-dev
erDefault , Alloc init vs standard Userdefault https://stackoverflow.com/questions/36615260 --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: Several different NSUserDefaults in the same app?

2021-04-03 Thread Richard Charles via Cocoa-dev
search list. Invoke it only if you’ve allocated your own NSUserDefaults instance instead of using the shared one. So it appears that using alloc int does not return the shared instance. It would be up to you to determine the monitors attached to the computer using NSScreen and or CGDirectDisplay ro

Re: Several different NSUserDefaults in the same app?

2021-04-03 Thread Richard Charles via Cocoa-dev
sWithName:@"monitor-name"] boolForKey:@"some > key"] How about something like this? NSUserDefaults *monitor1 = [[NSUserDefaults alloc] init]; [monitor1 setBool:YES forKey:@"MyKey”]; BOOL value = [monitor1 boolForKey:@"MyKey"]; --Richard Charl

Re: How to reposition subviews without Auto Layout

2020-10-17 Thread Richard Charles via Cocoa-dev
So why not just do this. [myView translatesAutoresizingMaskIntoConstraints:NO]; [myView setAutoresizingMask:myMask]; --Richard Charles > On Oct 17, 2020, at 2:47 PM, Andreas Falkenhahn > wrote: > > No, they are inserted programmatically. > >> On 17.10.2020 at 18:41

Re: How to reposition subviews without Auto Layout

2020-10-17 Thread Richard Charles via Cocoa-dev
Just curious if these three subviews are in a nib or xib file or are they inserted into the content view programmatically? --Richard Charles > On Oct 17, 2020, at 9:46 AM, Andreas Falkenhahn > wrote: > > Thanks, out of curiosity I've tried to override the "layou

Re: How to reposition subviews without Auto Layout

2020-10-17 Thread Richard Charles via Cocoa-dev
You could call this method on your three views. -[NSViewView setAutoresizingMask:] --Richard Charles > On Oct 17, 2020, at 6:57 AM, Andreas Falkenhahn via Cocoa-dev > wrote: > > Hi, > > I have an NSView that I set as the content view of my NSWindow. The NSView > has

Re: Drag and Drop of NSTokenField stopped working in Catalina

2020-06-30 Thread Richard Charles via Cocoa-dev
NSTokenField is used in the Mail application in the address field. Using the Mail app in Catalina, drag a token from the address field to a TextEdit document. Does that work? I would try it but my primary development machine is macOS Sierra. --Richard Charles __

Re: Launching in fullscreen gives "Funk" sound sometimes

2020-06-24 Thread Richard Charles via Cocoa-dev
Best regards, Gabriel Symbolic Breakpoints https://www.bignerdranch.com/blog/xcode-breakpoint-wizardry-for-debugging/ --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Screensaver can capture mouse events under Catalina

2020-05-25 Thread Richard Charles via Cocoa-dev
t regards, Gabriel Looks like a macOS application with screen saver functionality. You could download it and try it out and see how they do things. What does the installer do. Does simply install an app or are there other pieces installed. Open up the app package and see what is inside. That mig

Re: Xcode Archive builds Debug version?

2020-05-24 Thread Richard Charles via Cocoa-dev
running. Xcode uses the Release configuration when building an Archive. This is the same configuration used when Profiling. You can see all of this in Edit Scheme... --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Xcode Build Location

2020-05-15 Thread Richard Charles via Cocoa-dev
. --Richard Charles ___ 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

Re: Xcode Build Location

2020-05-08 Thread Richard Charles via Cocoa-dev
g being part of a link path during build. --Richard Charles ___ 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

Xcode Build Location

2020-05-07 Thread Richard Charles via Cocoa-dev
e file path. So if it ever changes then linking will fail. So my question is will this 28 character unique string always remain constant for a given project? Any insight would be appreciated. --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@

Re: Inconsistent fullscreen modes

2020-05-01 Thread Richard Charles via Cocoa-dev
NSButton *button = [self.window standardWindowButton:NSWindowZoomButton]; NSCell *cell = button.cell; [cell.target performSelector:cell.action]; Where self is the NSView object. --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Problem in the creation of Graphics context(NSGraphicsContext)

2020-03-09 Thread Richard Charles via Cocoa-dev
I do not know Java at all but my guess is that when createImageRep is called the second time the new graphics context does not replace the static one saved during the first execution. --Richard Charles > On Mar 9, 2020, at 3:59 AM, Sravan Kumar Lakkimsetti > wrote: > > If so

Re: Problem in the creation of Graphics context(NSGraphicsContext)

2020-03-04 Thread Richard Charles via Cocoa-dev
hich might remain valid regardless of the display. --Richard Charles > On Mar 3, 2020, at 11:19 PM, Sravan Kumar Lakkimsetti via Cocoa-dev > wrote: > > Hi, > > In our product we use > https://developer.apple.com/documentation/appkit/nsgraphicscontext/1529827-graphicscontextwith

Re: Confusion about screen resolution

2020-02-22 Thread Richard Charles via Cocoa-dev
for all other cases." I am just curious, have you actually seen a 3X backing store or is this just a surmise? --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to t

Re: Confusion about screen resolution

2020-02-22 Thread Richard Charles via Cocoa-dev
writing its contents into the frame buffer. > I am curious as to why that doesn't cause any aliasing artefacts, or > anti-aliasing artefacts ... > > Best, G. > This is bizarre. When did this start, Catalina? It has been my experience that the default scale factor is 1.0 fo

Re: Future of Cocoa #2

2019-12-10 Thread Richard Charles via Cocoa-dev
s Microsoft web site where the tag line is "cross-platform". It would be interesting to know if this stuff really works. https://dotnet.microsoft.com/learn/dotnet/what-is-dotnet --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@li

Re: Future of Cocoa

2019-11-21 Thread Richard Charles via Cocoa-dev
made on Nov 18, 2019 by Pierre Habouzit Senior Software Engineer at Apple and Duncan Exon Smith Engineering Manager, Clang Frontend Team at Apple So that is a great point. If Objective-C is dying why is Apple going to all the trouble of adding new language extensions for performance gains

Re: Thoughts on Objective-C++

2019-11-19 Thread Richard Charles via Cocoa-dev
> On Nov 13, 2019, at 11:58 AM, Richard Charles wrote: > > Apple released iTunes for Windows in October 2003. > Apple just posted a job opening for a Senior Software Engineer- Windows Media Apps. It would be interesting to know how they plan on porting the new macOS media app

Re: Future of Cocoa

2019-11-19 Thread Richard Charles via Cocoa-dev
chnical fields. Perhaps this is why Apple has not yet removed these libraries from the system and GPU vendors still support the OpenGL compatibility profile. --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Future of Cocoa

2019-11-19 Thread Richard Charles via Cocoa-dev
loper.apple.com/library/archive/documentation/Darwin/Conceptual/64bitPorting/HighLevelAPIs/HighLevelAPIs.html --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Cont

Re: Thoughts on Objective-C++

2019-11-13 Thread Richard Charles via Cocoa-dev
Windows NT and Solaris. The Red Box, Blue Box, Yellow Box was 1997. Apple released iTunes for Windows in October 2003. Over the last 16 years would bet that a lot of spit and polish has gone into integrating Cocoa with Windows by the iTunes team. --Richard Charles __

Re: Thoughts on Objective-C++

2019-11-12 Thread Richard Charles via Cocoa-dev
ferior electron apps on the Mac platform. --Richard Charles ___ 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 H

Re: Thoughts on Objective-C++

2019-11-12 Thread Richard Charles via Cocoa-dev
em providing this to outside developers? --Richard Charles ___ 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/Unsubs

Re: Thoughts on Objective-C++

2019-11-12 Thread Richard Charles via Cocoa-dev
great, no crashes. An examination of application files shows dlls for CoreFoundation, CoreText, Foundation, CoreGraphics, Objective-C, etc. This is a Cocoa application. Why can't Apple provide tools so that outside developers can also do this? --Richard Charles

Re: Thoughts on productivity

2019-10-25 Thread Richard Charles via Cocoa-dev
bout Dash. Much better presentation of Apple documentation than what Apple offers. Thanks for sharing. --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Thoughts on productivity

2019-10-24 Thread Richard Charles via Cocoa-dev
list has had somewhat of a resurgence in recent months. Apple sample code should compile and run on the current version of Xcode. Period. What good is sample code if it takes a day to get it up and running. --Richard Charles ___ Cocoa-dev mailing lis

Re: Not seeing rightMouseDown: - what are the docs actually saying ?

2019-10-21 Thread Richard Charles via Cocoa-dev
d call super when implementing that method in your custom subclasses." Are you doing this? --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Not seeing rightMouseDown: - what are the docs actually saying ?

2019-10-20 Thread Richard Charles via Cocoa-dev
. Too many changes to down grade from 64 to 32 bit. --Richard Charles > On Oct 18, 2019, at 3:10 PM, Aandi Inston via Cocoa-dev > wrote: > > I believe I may be seeing an effect described in the Cocoa docs for the > rightMouseDown: method. I am unsure exactly what the docs are

Re: Need for Swift

2019-10-15 Thread Richard Charles via Cocoa-dev
ef __cplusplus #define CPP(x) x #else #define CPP(x) #endif That way you can import or include the same header into a .m or .mm source file. --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Need for Swift

2019-10-15 Thread Richard Charles via Cocoa-dev
Objective-C using Objective-C++ and then bridge to Swift. That does sound like a nightmare. Looks like you are in a pickle. --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: Need for Swift

2019-10-12 Thread Richard Charles via Cocoa-dev
came from the mind of Chris Lattner who showed it to management and they loved the idea. It was made possible by the power and flexibility of the LLVM compiler. --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not p

Re: Thoughts on Cocoa source code

2019-10-11 Thread Richard Charles via Cocoa-dev
> On Oct 11, 2019, at 7:07 PM, 조성빈 wrote: > >> 2019. 10. 12. 오전 9:55, Richard Charles via Cocoa-dev >> 작성: >> >> None but the biggest of companies can do this. > > That’s not true, web apps aren’t really complex if you get to use the npm > ecosystem. T

Re: Thoughts on Cocoa source code

2019-10-11 Thread Richard Charles via Cocoa-dev
web apps. None but the biggest of companies can do this. One alternative for native desktop apps is a Box Integration. https://support.apple.com/en-us/HT207876 --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not po

Re: Thoughts on Cocoa source code

2019-10-11 Thread Richard Charles via Cocoa-dev
> On Oct 11, 2019, at 4:46 PM, Jens Alfke wrote: > >> On Oct 11, 2019, at 12:22 PM, Richard Charles wrote: >> >> A second choice "Cross-platform Cocoa App" would be great for the small >> developer who’s focus is on business applications. All whol

Re: Thoughts on Cocoa source code

2019-10-11 Thread Richard Charles via Cocoa-dev
one of the choices is Cross-platform. Under this tab the only choice available is "Cross-platform Game". A second choice "Cross-platform Cocoa App" would be great for the small developer who’s focus is on business applications. All whole world doesn’t re

Re: Thoughts on Cocoa

2019-10-10 Thread Richard Charles via Cocoa-dev
ound as the lower-level, closer-to-the-metal API. My guess is maybe outside the company this may have been the common view but not to every one inside the company. Core Foundation made Carbon possible on the new OS. It was written by borrowing stuff from Cocoa n

Re: Thoughts on Cocoa source code

2019-10-09 Thread Richard Charles via Cocoa-dev
t; for them to use expensive macs vs linux servers because of the performance > increase. Pretty amazing if you think about it. They should be thrilled that Apple announced an optimized version of the 2019 Mac Pro for rack deployment. --Richard Charles _

Re: Thoughts on Cocoa source code

2019-10-09 Thread Richard Charles via Cocoa-dev
hy isn't Cocoa open source? Apple open-sources Swift and the > Darwin kernel. Surely the GUI can't be any riskier to expose to developers? Perhaps Apple does not want to give away the Crown Jewels. --Richard Charles ___ Cocoa-dev mailing list (C

Re: Thoughts on Cocoa

2019-10-04 Thread Richard Charles via Cocoa-dev
done when the decision was made not to release the product but rather focus the company's resources and efforts on Cocoa instead. It appears there was a lot of internal turmoil within the company and the resistance to Cocoa was strong but eventually Cocoa won out the day because it is a superior

Re: Thoughts on Cocoa

2019-10-02 Thread Richard Charles via Cocoa-dev
ention. Just a thought. --Richard Charles ___ 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: Thoughts on ARC

2019-10-01 Thread Richard Charles via Cocoa-dev
n Electron and the Decline of Native Apps enlightening. https://daringfireball.net/2018/12/electron_and_the_decline_of_native_apps --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderato

Re: Thoughts on ARC

2019-09-27 Thread Richard Charles via Cocoa-dev
t writing Core Foundation and Carbon. Perhaps they didn’t want to stretch their resources thin by also supporting Windows apps. --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Thoughts on ARC

2019-09-27 Thread Richard Charles via Cocoa-dev
tion. It makes > cross-platform development almost impossible. The TIOBE index shows Swift > declining (and Objective-C increasing). So, maybe it isn't. > > It would really help if programmers could write Macintosh apps in C++, > Python, etc. Apple did a language overhaul with Swif

Re: Views without any layout constraints may clip their content or overlap other views

2019-09-26 Thread Richard Charles via Cocoa-dev
an see it took a long time to get it working properly. This may be why some developers opted out of Auto Layout. I have a large project with with Auto Layout turned off in each nib. I opened the project in Xcode 11 and started working my way through the nib warnings and then realized I don’t

Re: Views without any layout constraints may clip their content or overlap other views

2019-09-23 Thread Richard Charles via Cocoa-dev
e navigator select the xib file then select one of the objects in the file. It can be any object in the file such as the window, the first responder, the file's owner, etc. In the right side panel file inspector a section will appear titled "Interface Builder Document". In this secti

Re: boundingRectWithSize gives wrong size

2019-09-10 Thread Richard Charles via Cocoa-dev
r, but I could not find how to determine > the width/height of a two-line string. For multiple lines you need to use a framesetter. CTFramesetterCreateWithAttributedString() CTFramesetterSuggestFrameSizeWithConstraints() --Richard Charles ___ Coc

Re: boundingRectWithSize gives wrong size

2019-08-28 Thread Richard Charles via Cocoa-dev
t.) Sometimes, the width is only a little bit > too wide, sometimes it is much too wide. I have had good results with CTLineGetTypographicBounds(). --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Cocoa window messages in app being ported from Carbon

2019-08-10 Thread Richard Charles via Cocoa-dev
0007fff8cea0e0e in NSApplicationMain () --Richard Charles ___ 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/Unsubscr

Re: Cocoa window messages in app being ported from Carbon

2019-08-10 Thread Richard Charles via Cocoa-dev
> On Aug 10, 2019, at 3:21 PM, Rob Petrovec via Cocoa-dev > wrote: > > So he needs to implement hitTest to get mouseDown events. I just made a new Cocoa App project with a custom view. I did not implement hitTest:. The view receives mouseDown events just fine. --Ric

Re: Best Xcode machine mid-2019?

2019-07-02 Thread Richard Charles via Cocoa-dev
Intel Xeon) and the same thing happens. During build the CPU scores are heavily used but the hyper-threads somewhat less. I always thought the physical cores and hyper-threads were used the same amount, but that is not the case. Apparently the physical cores are more powerful than the virtual cores.

Re: Notarization error: The signature algorithm used is too weak

2019-05-29 Thread Richard Charles via Cocoa-dev
> On May 28, 2019, at 8:18 PM, Leo via Cocoa-dev > wrote: > > Can you please elaborate on this... Perhaps this will help. https://stackoverflow.com/questions/25152451/are-mac-app-store-code-sign-resource-envelopes-always-version-1 --Ric

Re: Is the list alive?

2019-05-29 Thread Richard Charles via Cocoa-dev
nswered by looking in stackoverflow, perusing older documentation or searching the web. You can always submit a technical support incident but you will most likely be asked to submit a focused sample project demonstrating the issue. I need to take a look at co...@apple-dev.groups.io. It looks inter

Re: Notarization error: The signature algorithm used is too weak

2019-05-28 Thread Richard Charles via Cocoa-dev
I understand, this whole situation has to do something with signing > files inside tar.gz archives - on which I couldn't find any info either Looks to me like your eSellerate framework is signed with a version 1 signature. You need to resign the

Re: xCode troubles

2019-05-14 Thread Richard Charles
That might be useful. --Richard Charles ___ 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

Re: Cannot include Carbon on Mojave

2019-05-14 Thread Richard Charles
acOSX10.14.sdk/System/Library/Frameworks/ > Carbon.framework/Headers/Carbon.h:34:10: fatal error: > 'CarbonSound/CarbonSound.h' file not found My guess is that this is deliberate and Xcode is trying to warn you move to another API. But maybe not and

Re: Cannot include Carbon on Mojave

2019-05-14 Thread Richard Charles
onceptual/OSX_Technology_Overview/SystemFrameworks/SystemFrameworks.html It looks to me like Apple is making good on their promise. --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: xCode troubles

2019-05-14 Thread Richard Charles
nd new project? You can reset an existing project by opening the xcodeproj bundle and discarding the xcworkspace bundle and xcuserdata folder. Keep the pbxproj bundle. --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: NSTextField "Discard Change"

2019-05-06 Thread Richard Charles
manually push changes back to the model. So in addition to writing code to push view changes to the model you must also write code to present an error alert panel and discard a change. --Richard Charles > On May 6, 2019, at 7:49 AM, Keary Suska wrote: > > IIRC, you get this

Re: NSTextField "Discard Change"

2019-05-06 Thread Richard Charles
[self setObjectValue:self.cachedObjectValue]; [self.window makeFirstResponder:self]; } } The abortEditing message is needed otherwise the binding will push the updated cached object value to the model. --Richard Charles ___ Cocoa-d

Re: NSTextField "Discard Change"

2019-04-27 Thread Richard Charles
SController and NSViewController. --Richard Charles ___ 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/Unsubscrib

Re: NSTextField "Discard Change"

2019-04-27 Thread Richard Charles
> On Apr 7, 2019, at 11:03 AM, Quincey Morris > wrote: > >> On Apr 5, 2019, at 20:55 , Richard Charles wrote: >> >> Sending the text field an abortEditing message does not work. How can >> changes to the text field be discarded? > > Caveat: I don’

Re: NSTextField "Discard Change"

2019-04-08 Thread Richard Charles
Quincey, thanks so much for your insight. Unfortunately I will be gone for the next several weeks. I thought I would be able to tackle this problem before I left but now I have run out of time. I will be able to look more carefully at your comments when I get back. Thanks again. --Richard

Re: Dynamically change NSCollectionView items based on view width

2019-04-06 Thread Richard Charles
View Controllers. --Richard Charles > On Apr 6, 2019, at 3:46 PM, Demitri Muna wrote: > > Hello, > > I have a 10.11+ NSCollectionView. I have two representations (subclasses of > NSCollectionViewItem) of the data - one large and one small. When the view is > resize

NSTextField "Discard Change"

2019-04-05 Thread Richard Charles
L)didRecoverSelector contextInfo:(void *)contextInfo { // Discard Change if (recoveryOptionIndex == 1) { [self abortEditing]; // does not work } } Sending the text field an abortEditing message does not work. How can changes to the text field be discarded

Re: NSManagedObject.managedObjectContext is nil???

2019-03-26 Thread Richard Charles
You have retained the managed object outside the managed object context. --Richard Charles > On Mar 26, 2019, at 1:04 PM, Rick Mann wrote: > > I'm seeing a situation where my NSManagedObject's managedObjectContext is > nil. It doesn't happen all the time though. Any idea

Re: printing black

2019-01-22 Thread Richard Charles
lter to pdf documents that effectively changes a color pdf into a black & white monochrome pdf. It works well. --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: lockFocusIfCanDraw behavior in layer-backed mode

2018-12-17 Thread Richard Charles
TS Engineer, was helpful in providing insight. You may want to submit a technical support incident on your particular use case. --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comme

Re: lockFocusIfCanDraw behavior in layer-backed mode

2018-12-15 Thread Richard Charles
tter way of doing that. You should just subclass NSView and implement draw rect. Both of those methods have been kind of finicky for a while. So, you'll be saving yourself some trouble." Note that all of the NSView focus methods are now depreciat

Re: Custom NSButton image effects for pressed/disabled

2018-12-13 Thread Richard Charles
ook and feel as Cocoa > controls. Compose your image as a single image but with disjointed parts. I use Inkscape to draw vector graphics and use a pdf for the image. The only place in the "image" where there is something is where something is drawn. Everywhere else it i

Re: Need a direction. App crash in CoreData while loading a window's nib

2018-11-04 Thread Richard Charles
this may be some kind of KVO problem. --Richard Charles ___ 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/Un

Re: Need a direction. App crash in CoreData while loading a window's nib

2018-11-03 Thread Richard Charles
You could also open the sqlite file with the Base.app by Menial and see what happens and take a look at the data. --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Xcode 10 and disable layer backed windows in Mojave

2018-10-25 Thread Richard Charles
is behavior being optional. > Is there a way to link against the 10.13 SDK in Xcode 10. Any other ideas? Not sure about linking but I think you need to make your views compatible with layer backing. --Richard Charles ___ Cocoa-dev mailing list (Cocoa-de

Re: touchesMoved value setting

2018-09-18 Thread Richard Charles
nValue: > This will require multiple touch and drags but he's fine with it. This does not sound right. I think something is wrong. --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderato

Re: NSAlert

2018-09-10 Thread Richard Charles
ver I could not see what "All controls" had to do with pressing the spacebar so I stumbled upon my insight independently of Andy's comment. Apple could do a better job of documenting this behavior somewhere for developers and users. --Richard Charles _

Re: NSAlert

2018-09-10 Thread Richard Charles
clicked" by pressing the return key. One common place where you can see all of this in action is in the alert when emptying the trash in Finder. At one time this may have been all in my muscle memory but if you have been using your iPhone day in and d

NSAlert

2018-09-08 Thread Richard Charles
I have a simple NSAlert presented as an attached sheet with a single default OK button. When the spacebar is pressed the alert is dismissed. It this a new thing? Is this documented anywhere? --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev

Re: Mac App Store paid upgrades and app settings

2018-08-13 Thread Richard Charles
single time payment apps. So does this mean that the new Mac App Store will allow for upgrade payments or recurring payments? Perhaps Apple, Microsoft and Adobe know the answer to that question but are not telling anyone. --Richard Charles ___ Cocoa

Re: NSComboBox

2018-07-25 Thread Richard Charles
an gain insight into what going on by looking there. --Richard Charles ___ 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.

Re: Why are the simplest things the hardest?

2018-07-07 Thread Richard Charles
ok right now but I think they have sample code that will walk the responder chain, log this to the console, and you can then see exactly what your responder chain looks like. I find this to be a great debugging tool. --Richard Charles ___ Cocoa-dev

Re: How to make my NSViewControllers participate in responder chain?

2018-06-30 Thread Richard Charles
ain. Refer to Cocoa Event // Handling Guide, Event Architecture, The Responder Chain. MyResponder *customObject = _responder; NSResponder *nextResponder = self.nextResponder; [self setNextResponder:customObject]; [customObject setNextResponder:nextResponder]; --Richard Charles ___

Re: Scrolling differences when using Trackpad or Mouse-Wheel

2018-06-23 Thread Richard Charles
to be normal. However when mouse wheel movement has stopped scrolling still persists for a short period of time almost appearing to be momentum. This is not normal. A mouse wheel has no momentum if it has detents. So this is a puzzle. --Richard Charles __

Re: Scrolling differences when using Trackpad or Mouse-Wheel

2018-06-20 Thread Richard Charles
App Store and identified developers. Why is this app not signed with a developer certificate? --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contac

UNIX error exception: 17

2018-06-08 Thread Richard Charles
/mdsDirectory.db: 50744 bytes default 19:45:53.393995 -0600 MyApp UNIX error exception: 17 default 19:45:53.394243 -0600 MyApp UNIX error exception: 17 When the app is launched from within Xcode the debug area is blank. Any idea what could be causing this? --Richard Charles

Persistent User Defaults

2018-04-24 Thread Richard Charles
not only must you delete the preference plist file but you must also restart the machine. Can anyone shed light on this behavior? --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Deleting files extremely slow since OSX High sierra

2018-04-22 Thread Richard Charles
ing. It was so bad that the only thing I could think of doing was another clean install. --Richard Charles ___ 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: Deleting files extremely slow since OSX High sierra

2018-04-22 Thread Richard Charles
rienced anything like this before. I ended up reinstalling High Sierra to get rid of the problem. --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderator

Re: Harmful Notification Post Rate

2018-03-30 Thread Richard Charles
> On Mar 29, 2018, at 10:49 PM, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Mar 29, 2018, at 21:00 , Richard Charles <rcharles...@gmail.com> wrote: >> >> How can I figure out what notification is posting at a high rate

Harmful Notification Post Rate

2018-03-29 Thread Richard Charles
When dragging the mouse the console will issue a warning "Detected potentially harmful notification post rate of xxx.xxx notifications per second". How can I figure out what notification is posting at a high rate? --Richard Charles ___

Re: NSLayoutConstraint crash

2018-03-16 Thread Richard Charles
be causing this error? Have you tried manually exercising the constraints? In Interface Builder drag the views into random positions and sizes then click "Update Frames” to force the constraint system to apply the constraints. This may uncover any errors you have in the constraints containt

Re: NSLayoutConstraint crash

2018-03-16 Thread Richard Charles
causing this error? Perhaps this might help. https://books.google.com/books?id=JTxsAQAAQBAJ=PP51=PP51=Assertion+failure+NSLayoutConstraint+setPriority=bl=5hS5MqkC4F=RZENjGG10if2pqw9_RKTbJhTQQA=en=X=0ahUKEwjJhrm6m_HZAhVM6WMKHU0wCogQ6AEIZjAI#v=onepage=false --Richard Charles ___

Re: Xcode Versions

2018-01-20 Thread Richard Charles
8” so I assume you would run Xcode 8.3.3 which should run fine under macOS High Sierra. By the way how did you end up with all those leading spaces at the begining of each line in your email. --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists

Re: Popup-Menu Binding issue in Cell-based NSTableView

2018-01-01 Thread Richard Charles
type to and from the collection. So NSArrayController works within a very narrow range of capabilities. --Richard Charles > On Jan 1, 2018, at 2:46 AM, Motti Shneor <motti.shn...@me.com> wrote: > > Hello everyone. Please excuse the anachronism, I am maintaining an old Mac > Applica

  1   2   3   >