Post

Replies

Boosts

Views

Activity

Reply to Changing constraints of a UIButton
Changing constraints of a UIButton Do you change constraints of Button or of image ? Could you show code ? How did you define constraints for imageView ? How do you move image to the center ? By modifying constraints ? You could: create constraints in IB for ImageView, those that will be needed in the 2 positions create IBOutlets for them keep original values in constants in your code ; and define values for center position when you tap on the button, you adapt the needed constraints constant to their new value or activate / deactivate as needed. when you tap again, restore the original values you have defined Refer to Xcode doc for NSLayoutConstraint. Oops: that's for UIKit, not SwiftUI. In SwiftUI, I would: define the 2 views for the 2 positions have a Bool state var to tell which one to show toggle this var in the button action.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’21
Reply to Adding / Removing items from a NSTableView
Thanks for feedback. Don't forget to close the thread on the correct answer. As for your next question: Since each time I change something in the array used by the NSTableView, I need to reloadData() the NSTableView, I guess it is the same when I want to filter the array, right ? In essence, yes, but you can reload only the relevant rows (indexPath) after insert / delete. What is very important is to update dataSource BEFORE you add, remove or reload. Effectively, to filter, you filter the dataSource. Then you'd better reload the full table, because it will be harder to see who has changed.
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’21
Reply to Blocking screenshots
That question has been asked multiple times. . screens that contain potentially protected information? Then you'd probably be better off not putting in an app ? . now that screenshots get LiveText selection and copy LiveText doesn't change anythings. Those who wanted to use this information could do it easily before LiveText if they really wanted to. And even if you block screenshots, you will not block photos of screen. With no difference at the end. IMO, all you can do is to add warnings that this is protected information… or refrain from putting this info in an app.
Topic: Privacy & Security SubTopic: General Tags:
Nov ’21
Reply to app
That is a legitimate question, but a bit vague. Is your question about learning how to develop ? If so, learn from the many Apple books (free) and start with "Intro to App development with Swift". Or is your question about finding a good app idea ? That is the important question. There is no magic recipe here, but I can give an advice for one method to find it: think of problem you face in your daily life, that is really a pain point, and see how an app could help. Or something else ? In anycase, wish you good luck. And remember you will always find helping hands in the forum for your technical questions.
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’21
Reply to simulate app
Could you post your info.plist ? In particules this entry: Note that it may appear at Executable file key. Details on environment variable (old thread, so some names have changed since in Xcode) : https://stackoverflow.com/questions/8723164/where-are-executable-name-and-product-name-defined/8972289
Topic: Code Signing SubTopic: General Tags:
Nov ’21
Reply to Xcode 13: Unable to Install
Could you explain the context, not only post a crash report ? What is "Brass" ?
Replies
Boosts
Views
Activity
Nov ’21
Reply to Introductory offers: Failed to update the changes because this pricing cannot be edited.
What pricing information have you set up ? A lot of details here: h t t p s : / / w w w.raywenderlich.com/9307-introductory-pricing-for-ios-getting-started
Replies
Boosts
Views
Activity
Nov ’21
Reply to Changing constraints of a UIButton
Changing constraints of a UIButton Do you change constraints of Button or of image ? Could you show code ? How did you define constraints for imageView ? How do you move image to the center ? By modifying constraints ? You could: create constraints in IB for ImageView, those that will be needed in the 2 positions create IBOutlets for them keep original values in constants in your code ; and define values for center position when you tap on the button, you adapt the needed constraints constant to their new value or activate / deactivate as needed. when you tap again, restore the original values you have defined Refer to Xcode doc for NSLayoutConstraint. Oops: that's for UIKit, not SwiftUI. In SwiftUI, I would: define the 2 views for the 2 positions have a Bool state var to tell which one to show toggle this var in the button action.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Adding / Removing items from a NSTableView
Thanks for feedback. Don't forget to close the thread on the correct answer. As for your next question: Since each time I change something in the array used by the NSTableView, I need to reloadData() the NSTableView, I guess it is the same when I want to filter the array, right ? In essence, yes, but you can reload only the relevant rows (indexPath) after insert / delete. What is very important is to update dataSource BEFORE you add, remove or reload. Effectively, to filter, you filter the dataSource. Then you'd better reload the full table, because it will be harder to see who has changed.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Adding / Removing items from a NSTableView
What is the good way ? It is really a question of personal preferences. I am not fond of bindings (probably because I do not practice a lot !), because I prefer to keep some visibility of what's going on in code. But once again, just a personal choice.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Live App Issue, I want to come back to previous build !
I don't know of such a possibility. Can't you create a new build 151, exactly similar to 145, and submit it again ?
Replies
Boosts
Views
Activity
Nov ’21
Reply to Can I submit a new version to TestFlight while a minor one is waiting for App Store release approval?
I don't think you can have 2 versions in submission for the same app. I once tried to cancel a submitted version and submit a new one. But that did block all the process, until I reactivated the first one, wait for its acceptance and submit immediately a new one.
Replies
Boosts
Views
Activity
Nov ’21
Reply to Blocking screenshots
That question has been asked multiple times. . screens that contain potentially protected information? Then you'd probably be better off not putting in an app ? . now that screenshots get LiveText selection and copy LiveText doesn't change anythings. Those who wanted to use this information could do it easily before LiveText if they really wanted to. And even if you block screenshots, you will not block photos of screen. With no difference at the end. IMO, all you can do is to add warnings that this is protected information… or refrain from putting this info in an app.
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Someone knows what this means?
When do you get this ? In which use case ?
Replies
Boosts
Views
Activity
Nov ’21
Reply to app
That is a legitimate question, but a bit vague. Is your question about learning how to develop ? If so, learn from the many Apple books (free) and start with "Intro to App development with Swift". Or is your question about finding a good app idea ? That is the important question. There is no magic recipe here, but I can give an advice for one method to find it: think of problem you face in your daily life, that is really a pain point, and see how an app could help. Or something else ? In anycase, wish you good luck. And remember you will always find helping hands in the forum for your technical questions.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to remove orange dot in full screen when using mic input
You probably saw this long discussion: h t t p s : / / w w w.reddit.com/r/MacOS/comments/qhbt4n/how_to_disable_orange_dot/ which unfortunately seems to confirm it is not possible (at least through official API). You could file a Bug report for enhancement.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to Is there any way to fix Xcode 13 performance issues?
That is apparently a known problem. https://developer.apple.com/forums/thread/691427 How long is it you installed ? Xcode may need several hours to update all its data. On my side, no problem. Would you reinstall Xcode 13.2 ?
Replies
Boosts
Views
Activity
Nov ’21
Reply to Failed to input letters on screen after keeping pressing one same key
In which app do you get the problem ? Did you check In System Preferences > Keyboard > Keyboard repeat setting ? In some apps, they selected not to repeat in order to show alternate letters. In Safari, for instance.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to simulate app
What do you mean by "Cpf bundle app"
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to simulate app
Could you post your info.plist ? In particules this entry: Note that it may appear at Executable file key. Details on environment variable (old thread, so some names have changed since in Xcode) : https://stackoverflow.com/questions/8723164/where-are-executable-name-and-product-name-defined/8972289
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’21