Skip to content

Category: Tips

sort code tips and tricks

Minimizing Overhead in Xojo Applications: Techniques, Tips, and Tricks

In the world of software development, efficiency is a central aspect. This is especially true for applications developed in Xojo. Excessive overhead can significantly impair performance and negatively affect the user experience. In this article, we will take a detailed look at what overhead is, how to identify it, and what techniques, tips, and tricks can be used to minimize it. We will particularly focus on using code profiling.

Comments closed

Clean Coding in Xojo: Best Practices for Writing Maintainable Code

Clean coding is a vital aspect of software development that ensures code readability, maintainability, and scalability. In the context of Xojo, adhering to clean coding principles can significantly enhance the quality and longevity of your projects. In this blog post, we’ll explore key practices for clean coding in Xojo, including the advantages and disadvantages of these approaches, with detailed examples and explanations.

Comments closed

iOS: Selecting Date and Time with More Style

Xojo 2024r2 introduces two new styles for the iOS DateTimePicker control. In previous releases, the DateTimePicker control offered only the Wheels Display Style. This release adds two more options: Compact and Inline. The Compact and the Inline Display Styles will allow you to create cleaner and more flexible user interfaces in your iOS apps.

Comments closed

Advanced File Processing Techniques: Using Chunks for Handling Large Files

A recent blog post, A Beginner’s Guide to Handling Text Files in Xojo, covered the basics of text file handling in Xojo. This post delves into advanced techniques for reading and writing large files in chunks. This method is crucial for managing large datasets efficiently, minimizing memory usage, and maintaining application performance.

1 Comment

Avoiding Memory Leaks with WeakRef

This is not that common of an issue, but it happens – when searching for memory leaks, remember to check any cross-referenced objects. Cross-referenced objects are, well, just that, objects that need to reference each other. For example, when “ClassA” needs to know about “ClassB”, and “ClassB” needs to know about “ClassA”. Continue reading to see how this can cause memory leaks in your projects and how to use Xojo’s WeakRef to fix it.

Comments closed

Popovers for Xojo Desktop, Web and iOS

Starting with Xojo 2024r1 there’s a new Window type in Xojo’s UI/UX bag: Popovers. Popovers are kind of a Modal window with a more transient behavior and associated with a Parent control. A Popover will display the chosen content or layout, the same as when you design the user interface of a window or a Container control that will be included as part of another more complex design or displayed at runtime.

Comments closed