Post

Replies

Boosts

Views

Activity

Change text in NSScrollView
Hello, I need to change the text of an NSScrollView at run time, but the command below is not working: ScrViwRegras.documentView?.insertText (rules.retornaTextoRegras()) Where Rules is a struct that has the returnTextoRegras() method that returns the new text. Has anyone had this problem? Xcode 15.0.1 in MacBook Air not iOS), Swift 5, Hugs
0
0
460
Dec ’23
Callback for object between NSViewController
Hi, This question is similar to a previous post (Return values for NSViewController) but the difference now is that the return from VC2 to VC1 is an object. Problem description: The NSViewController VC1 activates the NSViewController VC2 using the segue and passes by delegate an OBJ object of a class instantiated in VC1. VC2 changes the values of OBJ properties, and calls dismiss to return focus to VC1. How to make VC1 be notified immediately when VC2 closes? Obs. I created a method in VC1 triggered by a button that confirms that the values of the OBJ properties were really changed.
0
0
445
Mar ’23
Passing object between NSViewController
Hi, I have a P1 protocol, whose methods and properties are implemented by the C1 class. In NSViewController VC1, object OBJ1 of class C1 is instantiated. VC1 loads a new NSViewController VC2 through the segue, which needs access to the OBJ1 object. What is the best method to make VC2 see the object OBJ1, being able to modify it and return it to VC1? Thanks.
11
0
1.4k
Mar ’23
Return values for NSViewController
Hi, I have two NSViewController, VC1 and VC2. VC1 activates VC2 using segue and sends a struc object that will be used in VC2 to execute a process, fills in other data in the received object that should be visible in VC1. To terminate VC2 do vc2.dimiss. How do I know that focus has returned to VC1? Which method is executed on VC1 on return? Thanks.
2
0
684
Mar ’23
Swift 5.1 + MySql + macOS
Hello to all,I am creating a macOS XCode app using Swift 5.1 which should run locally on Mac. I already have a MySql database with data from a Java application.How can I make the connection and access the data through XCode application?I saw several articles but all talk about app running in a web environment. In my case it is a local app.Thanks.
10
0
9.3k
Jan ’22
Dynamic e random matrix
Hello, I'm developing an app for Mac, Xcode 15.1, with Swift 5. I need to create a visual matrix, whose elements will be filled randomly, according to the choices the user makes. The matrix must have 10 columns and 40 rows. Does anyone know a component, or how to fill it dynamically and randomly? Thanks.
Replies
2
Boosts
0
Views
598
Activity
Jan ’24
Change text in NSScrollView
Hello, I need to change the text of an NSScrollView at run time, but the command below is not working: ScrViwRegras.documentView?.insertText (rules.retornaTextoRegras()) Where Rules is a struct that has the returnTextoRegras() method that returns the new text. Has anyone had this problem? Xcode 15.0.1 in MacBook Air not iOS), Swift 5, Hugs
Replies
0
Boosts
0
Views
460
Activity
Dec ’23
Xcode X Switt X SQLite
Hi, Has anyone developing an app for Mac, Xcode 14.3 and using SQLite ever had the errors below? Detail: the application compiles and runs without errors!! Tks.
Replies
2
Boosts
0
Views
661
Activity
May ’23
Add xib in NSViewController
Hello, How to add an xib file in an NSViewController? Thanks.
Replies
0
Boosts
0
Views
518
Activity
Apr ’23
Callback for object between NSViewController
Hi, This question is similar to a previous post (Return values for NSViewController) but the difference now is that the return from VC2 to VC1 is an object. Problem description: The NSViewController VC1 activates the NSViewController VC2 using the segue and passes by delegate an OBJ object of a class instantiated in VC1. VC2 changes the values of OBJ properties, and calls dismiss to return focus to VC1. How to make VC1 be notified immediately when VC2 closes? Obs. I created a method in VC1 triggered by a button that confirms that the values of the OBJ properties were really changed.
Replies
0
Boosts
0
Views
445
Activity
Mar ’23
Passing object between NSViewController
Hi, I have a P1 protocol, whose methods and properties are implemented by the C1 class. In NSViewController VC1, object OBJ1 of class C1 is instantiated. VC1 loads a new NSViewController VC2 through the segue, which needs access to the OBJ1 object. What is the best method to make VC2 see the object OBJ1, being able to modify it and return it to VC1? Thanks.
Replies
11
Boosts
0
Views
1.4k
Activity
Mar ’23
Return values for NSViewController
Hi, I have two NSViewController, VC1 and VC2. VC1 activates VC2 using segue and sends a struc object that will be used in VC2 to execute a process, fills in other data in the received object that should be visible in VC1. To terminate VC2 do vc2.dimiss. How do I know that focus has returned to VC1? Which method is executed on VC1 on return? Thanks.
Replies
2
Boosts
0
Views
684
Activity
Mar ’23
Swift 5.1 + MySql + macOS
Hello to all,I am creating a macOS XCode app using Swift 5.1 which should run locally on Mac. I already have a MySql database with data from a Java application.How can I make the connection and access the data through XCode application?I saw several articles but all talk about app running in a web environment. In my case it is a local app.Thanks.
Replies
10
Boosts
0
Views
9.3k
Activity
Jan ’22